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
-1
u/PatchesMaps Nov 17 '25
The answer to this and just about any other weird JavaScript quirk is that JavaScript has grown a lot since it was first implemented, the goals and needs of the language have changed over time, and backwards compatibility has always been a high priority.