The Lobster Den
Home to spelling errors, deprecated HTML and wholesome fun.
Javascript Quirk of the Day- Negative Zero
2014-12-12 00:00:00 UTC
Want to have some fun with Javascript? Try typing this in your console:
0 * -1
// => -0
Well, that was unexpected. I would tell you all about it, but it seems as these folks have already done a good job of explaining why it is the way it is.