JPDev@programming.dev to Programmer Humor@programming.dev · 1 year agoExam Answerprogramming.devimagemessage-square129linkfedilinkarrow-up1799arrow-down111
arrow-up1788arrow-down1imageExam Answerprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 1 year agomessage-square129linkfedilink
minus-squareskulbuny@sh.itjust.workslinkfedilinkEnglisharrow-up17arrow-down1·1 year agoJavaScript has [string].length
minus-squarebreadsmasher@lemmy.worldlinkfedilinkEnglisharrow-up11arrow-down3·1 year agodoesnt have print nor allow variable declaration without keywords
minus-squareunalivejoy@lemm.eelinkfedilinkEnglisharrow-up25·1 year 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-squaretourist@lemmy.worldlinkfedilinkarrow-up8·1 year agoit’s so rough learning this by accident
minus-squareDowncount@lemmy.worldlinkfedilinkarrow-up12·1 year 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·1 year 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-squarebleistift2@feddit.delinkfedilinkEnglisharrow-up5·1 year 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].lengthdoesnt have
printnor allow variable declaration without keywordsprint()will print the text to a physical printer with paper and everything. Don’t confuse it withconsole.logand 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 !== 1truetrue + true + true === 3trueEverything is permitted
[]+[]''Sure you can write
foo = 3in JavaScript. It’s a global variable and can be referenced as eitherfooorwindow.foo.