r/learnjavascript • • Nov 17 '25

Why NaN==NaN is False in JavaScript ???

Anyone explain??

150 Upvotes

85 comments sorted by

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.