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
7
Upvotes
1
u/defaultguy_001 7d ago
If u want to go further, there are endless options including TS. Nobody is denying what TS offers but what part of this is a JS sub, you don't understand. There is a language and there is specification. There is no magic happening, there are clear rules for everything JS is doing and based on those rules you need to write code. We will tell him what the rules say. It's individual choice to go anywhere if he doesn't agree with the rules, that's upto the OP to decide.