JPDev@programming.dev to Programmer Humor@programming.dev · 7 months agoExam Answerprogramming.devimagemessage-square129fedilinkarrow-up1797arrow-down111
arrow-up1786arrow-down1imageExam Answerprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 7 months agomessage-square129fedilink
minus-squarebleistift2@feddit.delinkfedilinkEnglisharrow-up5·7 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
.