I'm a huge fan of JavaScript, but sometimes I'm left flabberghasted by some of its most basic reasoning.
// This sort of makes sense...
1 > null // true
// ...what?
-1 > null // false
I would get it if any number was larger than null
, but apparently in the land of JavaScript only positive numbers are larger.
In case you haven't seen it, I highly recommend the Wat talk by Gary Bernhardt. Super funny, and reveals a lot of quirks of different languages.