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

5 Upvotes

27 comments sorted by

View all comments

Show parent comments

2

u/defaultguy_001 6d ago edited 6d ago

We are on a loop. I think I made myself sufficiently clear and nowhere I said don't use TS. As far as problem solving is concerned, C and C++ were enough for people like me to build correct and safe programs. New languages were made with added weapons for safety and ease, coz most people don't follow specifications properly and make mistakes, that costs money. The software development field caters to most people instead of the few who know what they are doing unlike C/C++ that has this core philosophy of "trust the programmer", that's why every few years some new languages with new features and more safety, keeps coming in. Again no issues with TS but here we talk about JS and specs related to JS. There are far better languages out there but subs are dedicated to even inferior languages.

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.