[Poll] What do you get if you add two negative zeroes in JavaScript?
-0 + -0
No cheating! #jsquiz
-
-
In modern JS (eg, starting with ES2015) http://Object.is can be used to test for -0
-
Time to update the blog post!
End of conversation
New conversation -
-
-
Ooh, interesting! I mean, I tried to cheat on your poll and didn't know how :) (I answered first, of course)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
And lo, http://jsconsole.com/?(1/(-0%20+%20-0))%20===%20Infinity … reveals the truth :)
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.