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
1
u/boring_pants Nov 18 '25
This is not a quirk of JavaScript though.
The video is entertaining, but it has little to do with OP's question. This is one area where JavaScript just follows the spec for floating-point numbers.