@PugJesus@lemmy.worldM to HistoryPorn@lemmy.worldEnglish • 1 month 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-up1698arrow-down17
arrow-up1691arrow-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.world@PugJesus@lemmy.worldM to HistoryPorn@lemmy.worldEnglish • 1 month agomessage-square83fedilink
minus-square@axEl7fB5@lemmy.cafelinkfedilinkEnglish3•edit-21 month 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