PugJesus@lemmy.worldM to [Dormant] moved to !historyphotos@piefed.social@lemmy.worldEnglish · 5 months agoComputer scientist Margaret Hamilton with the extensive amount of code she and her team wrote to guide the NASA mission to the Moon, USA, 1969lemmy.worldimagemessage-square83fedilinkarrow-up1674arrow-down17
arrow-up1667arrow-down1imageComputer scientist Margaret Hamilton with the extensive amount of code she and her team wrote to guide the NASA mission to the Moon, USA, 1969lemmy.worldPugJesus@lemmy.worldM to [Dormant] moved to !historyphotos@piefed.social@lemmy.worldEnglish · 5 months agomessage-square83fedilink
minus-squareJackLSauce@lemmy.worldlinkfedilinkEnglisharrow-up29·5 months agoAnd we’ve been trying to find a more concise isEven function ever since
minus-squareaxEl7fB5@lemmy.cafelinkfedilinkEnglisharrow-up3·edit-25 months agofunction isEven(number) { return number % 2 === 0; } Dunno about making it “concise” but you can shorten the name of the function and the parameter and maybe use == instead of ===
And we’ve been trying to find a more concise isEven function ever since
function isEven(number) { return number % 2 === 0; }Dunno about making it “concise” but you can shorten the name of the function and the parameter and maybe use == instead of ===
Ew JavaScript