You must log in or register to comment.
Ahhh… javascript…
It works the other way around as well
Take my angry upvote!
Omg it even works for “NaN”
NaN is actually a number in JavaScript
tbf its the floating point standards fault
I had to check if that’s actually true. And yep, this is real.
I’m going to be honest, this probably makes sense more than any other JavaScript operator quirk I’ve seen.