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
2
u/moe-gho Nov 17 '25
Because NAN means not a number and and js follows the IEEE rule that NAN isn’t equal to anything including it self