coja@lemmy.ml to Programmer Humor@lemmy.ml · 1 year agoFind yourselflemmy.mlimagemessage-square98fedilinkarrow-up1630arrow-down129
arrow-up1601arrow-down1imageFind yourselflemmy.mlcoja@lemmy.ml to Programmer Humor@lemmy.ml · 1 year agomessage-square98fedilink
minus-squareLeo Uino@lemmy.sdf.orglinkfedilinkarrow-up72·1 year agoTDD const max12 = (x, y) => { if (x === 1 && y === 2) { return 2; } else if (x === 7 && y === 4) { return 7; } else { return x; } };
TDD
const max12 = (x, y) => { if (x === 1 && y === 2) { return 2; } else if (x === 7 && y === 4) { return 7; } else { return x; } };