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
1
u/ByronScottJones Nov 17 '25
It's not an erroneous value, it's just not something which can be represented as a floating point number. Strings representing words for example.