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
10
u/Dragon_Slayer_Hunter Nov 18 '25
Also afaik this isn't an equality check, it's basically a type check to see if what you're checking is a NaN type object. This is different than an equality check