r/learnjavascript • u/Green_Ad_6086 • Aug 16 '26
Strange result: null vs 0
Strange result: null vs 0
An incomparable undefined
Hi, can anyone explain this? I read the explanation, but I still don't understand it. I'm trying to understand it without using AI
4
Upvotes
View all comments
Show parent comment
1
u/delventhalz Aug 16 '26
Follow up: Although the spec is the ultimate source of truth for all this, it is tough to read and probably not a good place to go to resolve this sort of confusion. By constrast, MDN does a fantastic job of explaining cases like this with clear examples and a (somewhat) less dense explanation. The pages for both of these operations are worth reading: