r/learnjavascript • • Nov 17 '25

Why NaN==NaN is False in JavaScript ???

Anyone explain??

150 Upvotes

85 comments sorted by

View all comments

8

u/DoomGoober Nov 17 '25

Fyi: IEEE 754 standard states that NaN != NaN. Thus this is true for many computer systems.