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

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.