[Poll] What do you get if you add two negative zeroes in JavaScript?
-0 + -0
No cheating! #jsquiz
It actually kind of makes sense! Replace 0 in your example (or in mine) with any other number. What result do you expect?
-
-
Ah, see, here's the conundrum: what if I replace -0 with any other number instead? Should I expect http://Object.is (x + 0, x) to be true for any finite number? Or rather http://Object.is (-0 + x, x)? At the moment, the latter holds, but the former fails for -0.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.
