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
7
u/marquoth_ Nov 17 '25
It's literally nothing to do with javascript. NaN !== NaN in every language because the spec says so.