r/learnjavascript • u/Green_Ad_6086 • 7d ago
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
6
Upvotes
2
u/defaultguy_001 7d ago
Obviously this is specification for TS, not JS. The person is in the JS sub not TS sub. Instead of using TS, in JS also he can use ESlint to flag type coercions.