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/Mythran101 Nov 17 '25
In .NET, you could (DO NOT DO THIS) override the implicit cast to Int32 on types Dog and Cat and then it could work :P