9
comments
It works the other way around as well
4 0 ReplyTake my angry upvote!
1 0 Reply
Ahhh… javascript…
3 0 ReplyOmg it even works for “NaN”
2 0 ReplyNaN is actually a number in JavaScript
3 0 Replytbf its the floating point standards fault
1 0 Reply
I'm going to be honest, this probably makes sense more than any other JavaScript operator quirk I've seen.
2 0 ReplyI had to check if that's actually true. And yep, this is real.
1 0 Reply
9
comments
Scroll to top