JPDev to Programmer Humor · 8 months agoExam Answerimagemessage-square129fedilinkarrow-up1798arrow-down111
arrow-up1787arrow-down1imageExam AnswerJPDev to Programmer Humor · 8 months agomessage-square129fedilink
minus-squarebleistift2@feddit.delinkfedilinkEnglisharrow-up5·8 months agoSure you can write foo = 3 in JavaScript. It’s a global variable and can be referenced as either foo or window.foo.
Sure you can write
foo = 3
in JavaScript. It’s a global variable and can be referenced as eitherfoo
orwindow.foo
.