PugJesus@lemmy.worldM to HistoryPorn@lemmy.worldEnglish · 16 days 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-square83linkfedilinkarrow-up1699arrow-down17
arrow-up1692arrow-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 HistoryPorn@lemmy.worldEnglish · 16 days agomessage-square83linkfedilink
minus-squareJackLSauce@lemmy.worldlinkfedilinkEnglisharrow-up31·16 days agoAnd we’ve been trying to find a more concise isEven function ever since
minus-squareaxEl7fB5@lemmy.cafelinkfedilinkEnglisharrow-up3·edit-215 days 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