@[email protected] to Programmer [email protected] • 1 year agoExam Answerprogramming.devimagemessage-square128fedilinkarrow-up1795
arrow-up1795imageExam Answerprogramming.dev@[email protected] to Programmer [email protected] • 1 year agomessage-square128fedilink
minus-squareFlumPHPlinkfedilink25•1 year ago“Monday”.length is working JavaScript and does equal 6. No print command afaik though.
minus-square@[email protected]linkfedilinkEnglish2•1 year agoYou don’t need terminating semicolons in JavaScript. They’re added in if missing. It can actually cause a few bugs around returns.
minus-square@[email protected]linkfedilinkEnglish12•1 year agoThere technically is! https://developer.mozilla.org/en-US/docs/Web/API/Window/print Well. In browsers, anyways.
minus-square@[email protected]linkfedilink4•1 year agoYes, but it prints the page, so in this case it wouldn’t print anything
minus-square@[email protected]linkfedilink8•edit-21 year agofunction print(str) { console.log(str) } FTFY
“Monday”.length is working JavaScript and does equal 6. No print command afaik though.
deleted by creator
You don’t need terminating semicolons in JavaScript. They’re added in if missing. It can actually cause a few bugs around returns.
There technically is!
https://developer.mozilla.org/en-US/docs/Web/API/Window/print
Well. In browsers, anyways.
Yes, but it prints the page, so in this case it wouldn’t print anything
FTFY