@[email protected] to Programmer [email protected] • 8 months agoExam Answerprogramming.devimagemessage-square125fedilinkarrow-up1781arrow-down110
arrow-up1771arrow-down1imageExam Answerprogramming.dev@[email protected] to Programmer [email protected] • 8 months agomessage-square125fedilink
minus-square@breadsmasherlinkEnglish8•8 months agodoesnt have print nor allow variable declaration without keywords
minus-squareunalivejoylinkfedilinkEnglish25•8 months agoprint() will print the text to a physical printer with paper and everything. Don’t confuse it with console.log and use it in a loop.
minus-square@Downcountlink12•edit-28 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-square@kautaulink9•edit-28 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 []+[] ''
minus-square@[email protected]linkfedilinkEnglish5•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.
JavaScript has
[string].length
doesnt have
print
nor allow variable declaration without keywordsprint()
will print the text to a physical printer with paper and everything. Don’t confuse it withconsole.log
and use it in a loop.it’s so rough learning this by accident
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 !== 1
true
true + true + true === 3
true
Everything is permitted
[]+[]
''
Sure you can write
foo = 3
in JavaScript. It’s a global variable and can be referenced as eitherfoo
orwindow.foo
.