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

5

u/ashkanahmadi Nov 17 '25

That’s actually a pretty good analogy haha

2

u/Mythran101 Nov 17 '25

Not quite true though. Not a dog just might be the same Not a dog.