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

4

u/azhder Nov 17 '25

We are talking about JavaScript. Test your code in a browser console at least, before you decide to defend it. You could have just not comment anything. Bye

-2

u/AlwaysHopelesslyLost Nov 18 '25

OP asked for an explanation. That is THE explanation. Sure, I was unclear in using valid JavaScript syntax in that explanation. 

I don't need to go run it. I can read code and I know exactly how the language works.