this post was submitted on 16 Jun 2023
19 points (91.3% liked)
Programmer Humor
32426 readers
1058 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Can someone explain this? I mean, the last result. Usually I can at least understand Javascript's or PHP's quirks. But this time I'm stumped.
JS null and undefined shenanigans
basically:
==
is fucky and to it null only equals undefined and undefined only equals null (and themselves), so noUgh, thanks, of course. Stupid brain.
I'm starting to think JS maintainers have a thing against mathematicians
more likely against humans