this post was submitted on 12 May 2024
206 points (96.0% liked)
Programmer Humor
32365 readers
565 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
typeof x === "undefined"
is true.Then the bastard tries to willingly access
x
to equate it toundefined
, but that can't work sincex
is undefined and yields aReferenceError
(rendering the third expression moot).The monks answers of document.all is not applicable since
document.all
is a live set of data which can be nothing or everything.Who even introduced
document.all
? I bet it was microsoft...