JPDev@programming.dev to Programmer Humor@programming.dev · 5 months agoExam Answerprogramming.devimagemessage-square129fedilinkarrow-up1796arrow-down111
arrow-up1785arrow-down1imageExam Answerprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 5 months agomessage-square129fedilink
minus-squareDowncount@lemmy.worldlinkfedilinkarrow-up12·edit-25 months agoIt 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·edit-25 months agoJavaScript 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.![](https://lemmy.world/pictrs/image/e70dcc5a-1672-4572-b9ee-587a4841fd9c.jpeg)
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 !== 1
true
true + true + true === 3
true
Everything is permitted
[]+[]
''