JPDev@programming.dev to Programmer Humor@programming.dev · 2 年前Exam Answerprogramming.devimagemessage-square127linkfedilinkarrow-up1800arrow-down111
arrow-up1789arrow-down1imageExam Answerprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 2 年前message-square127linkfedilink
minus-squareDowncount@lemmy.worldlinkfedilinkarrow-up12·2 年前It would have print if it was previously declared as function. Also, js is as dirty as you want it to be. Keywords are indeed not necessary for declaring variables.
minus-squarekautau@lemmy.worldlinkfedilinkarrow-up9·2 年前JavaScript is the language of the assassins, with its infinitely modifiable prototypical setup Nothing is true true !== 1 true true + true + true === 3 true Everything is permitted []+[] ''
It would have print if it was previously declared as function.
Also, js is as dirty as you want it to be. Keywords are indeed not necessary for declaring variables.
JavaScript is the language of the assassins, with its infinitely modifiable prototypical setup
Nothing is true
true !== 1truetrue + true + true === 3trueEverything is permitted
[]+[]''