PugJesus@lemmy.worldM to [Dormant] moved to [email protected]@lemmy.worldEnglish · 4 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-up1682arrow-down17
arrow-up1675arrow-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 [email protected]@lemmy.worldEnglish · 4 months agomessage-square83fedilink
minus-squareaxEl7fB5@lemmy.cafelinkfedilinkEnglisharrow-up3·edit-24 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 ===
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