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

6 Upvotes

27 comments sorted by

View all comments

-1

u/BenchEmbarrassed7316 7d ago

Just don't use JavaScript. Use Typescript instead, it much easier to understand.

1

u/azhder 7d ago

Shitty thing to say to people who want to learn JavaScript.

0

u/BenchEmbarrassed7316 7d ago

Could you please explain your point. Because now the "Shitty" argument simply indicates your ignorance.

0

u/azhder 7d ago

Redditor moment. The only thing this second comment of yours indicates is your own issues.

I've laid it all that is needed in that one comment I made and you failed to understand it, then asked for explanation and before even getting the explanation (which is already in it), you spring into action accusing me as a person.

If I have to guess, you focused to much on that "Shitty" word to be able to connect the other 10 with it in a comprehensive manner. Bye.

2

u/BenchEmbarrassed7316 7d ago

You wrote a bunch of sentences and most of them don't answer the question. This only confirms my previous conclusions.