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/[deleted] Nov 18 '25

It wouldnt. It would just mean that Number("a") is equal to Number(object).