@[email protected] to Programmer [email protected] • 10 months agoExam Answerprogramming.devimagemessage-square125fedilinkarrow-up1781arrow-down110
arrow-up1771arrow-down1imageExam Answerprogramming.dev@[email protected] to Programmer [email protected] • 10 months agomessage-square125fedilink
minus-squareFlumPHPlinkfedilink25•10 months ago“Monday”.length is working JavaScript and does equal 6. No print command afaik though.
minus-square@dvlsglinkEnglish12•10 months agoThere technically is! https://developer.mozilla.org/en-US/docs/Web/API/Window/print Well. In browsers, anyways.
minus-square@[email protected]linkfedilink4•10 months agoYes, but it prints the page, so in this case it wouldn’t print anything
minus-square@[email protected]linkfedilink7•edit-210 months agofunction print(str) { console.log(str) } FTFY
minus-square@[email protected]linkfedilinkEnglish2•10 months agoYou don’t need terminating semicolons in JavaScript. They’re added in if missing. It can actually cause a few bugs around returns.
“Monday”.length is working JavaScript and does equal 6. No print command afaik though.
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
function print(str) { console.log(str) }
FTFY
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.