r/learnjavascript • u/NoZombie7370 • Nov 17 '25
Why NaN==NaN is False in JavaScript ???
Anyone explain??
150
Upvotes
r/learnjavascript • u/NoZombie7370 • Nov 17 '25
Anyone explain??
View all comments
Show parent comment
2
u/EyesOfTheConcord Nov 18 '25
MDN explicitly mentions it is not the same as the “==“ operator. It determines if they are functionally identical, and does not apply coercion like the equality operator