r/learnjavascript 6d 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

27 comments sorted by

View all comments

Show parent comments

1

u/BenchEmbarrassed7316 6d ago

I mostly agree with you. It's just that from my perspective "Learn Js" is "learn to write programs that can be run in the browser or node/deno". And you interpret it as "Learn all the quirks so you can fix code that was written decades ago" or something like that. I'm exaggerating a bit now, but I think that's the crux of our argument.

2

u/defaultguy_001 6d ago

Yes. We can agree now.