DEV Community

Discussion on: Why NaN === NaN returns false in JavaScript ?!

Collapse
 
jcubic profile image
Jakub T. Jankiewicz

Note that you didn't actually explained why NaN === NaN return false. You only explained that this is how it works. But the reason is because of IEEE 754 floating-point standard that specified how NaN should behave en.wikipedia.org/wiki/NaN

Collapse
 
amrtaher1234 profile image
Amr Mohamed

Yep, I added a reference explaining it further more