coja@lemmy.ml to Programmer Humor@lemmy.ml · 9 months agoFind yourselflemmy.mlimagemessage-square64fedilinkarrow-up1411arrow-down122
arrow-up1389arrow-down1imageFind yourselflemmy.mlcoja@lemmy.ml to Programmer Humor@lemmy.ml · 9 months agomessage-square64fedilink
minus-squareLeo Uino@lemmy.sdf.orglinkfedilinkarrow-up53·9 months 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; } };