Hacker News new | ask | show | jobs
by Arkanum 3557 days ago
Yeah, that makes sense mostly. But why is NaN === NaN false? What am I missing here?
1 comments

Because there is many ways NaN can be generated, all very different.

== is only defined for numbers, too.

1/0 and 50/0 aren’t the same, for example.