js Monk and Fly

204 points · 7 comments · view on lemmy.world

7 Comments

tetris11@lemmy.ml · 33 pts · 2y

this is the language we were given on the web, not the language we chose

Tartas1995@discuss.tchncs.de · 16 pts · 2y (4 replies)
[ removed ]
burrito82@feddit.de · 39 pts · 2y

Seems to be so, see Exceptional behavior of document.all

Although document.all is also falsy and loosely equal to undefined, it is not undefined. The case of document.all having type "undefined" is classified in the web standards as a "willful violation" of the original ECMAScript standard for web compatibility.

SpaceNoodle@lemmy.world · 18 pts · 2y (1 reply)

No, it's undefined

lseif@sopuli.xyz · 1 pts · 2y

not strictly

DmMacniel@feddit.de · 6 pts · 2y

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...

sorter_plainview@lemmy.today · 6 pts · 2y

The what?? Is it a condition?

pfm@scribe.disroot.org · 6 pts · 2y

Now I'd love to see a Perl monk comic!