2 ms·
It just evaluates to false, as this is just two comparison operations. It's easier to comprehend if add a parentheses around first operation as such: (new
by methyl 4y ago
It just evaluates to false, as this is just two comparison operations.
It's easier to comprehend if add a parentheses around first operation as such:
(new DOMPoint < Number) > (4, 5)
(new DOMPoint < Number) evaluates to true and it becomes (true) > (4, 5). Because (foo, bar, baz) syntax always evaluates the last item, we can finally simplify it into (true > 5), which surely enough in Javascript evaluates to false.