You must log in or register to comment.
JavaScript has
[string].length
doesnt have
print
nor allow variable declaration without keywordsIt 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
[]+[]
''
print()
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
Sure you can write
foo = 3
in JavaScript. It’s a global variable and can be referenced as eitherfoo
orwindow.foo
.