203
js Monk and Fly (sh.itjust.works)
you are viewing a single comment's thread
view the rest of the comments
[-] DmMacniel@feddit.de 6 points 3 months ago* (last edited 3 months ago)

typeof x === "undefined" is true.

Then the bastard tries to willingly access x to equate it to undefined, but that can't work since x is undefined and yields a ReferenceError (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...

this post was submitted on 12 May 2024
203 points (95.9% liked)

Programmer Humor

31700 readers
727 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS