JPDev@programming.dev to Programmer Humor@programming.dev · 8 months agoExam Answerprogramming.devimagemessage-square58fedilinkarrow-up1554arrow-down17
arrow-up1547arrow-down1imageExam Answerprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 8 months agomessage-square58fedilink
minus-squareFlumPHP@programming.devlinkfedilinkarrow-up18·7 months ago“Monday”.length is working JavaScript and does equal 6. No print command afaik though.
minus-squarePrettyFlyForAFatGuy@feddit.uklinkfedilinkarrow-up5arrow-down1·edit-27 months agofunction print(str) { console.log(str) } FTFY
minus-squarekia@lemmy.calinkfedilinkEnglisharrow-up1·7 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.
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.