coja to Programmer Humor@lemmy.ml • 2 years agoFind yourselflemmy.mlimagemessage-square104fedilinkarrow-up1644arrow-down128
arrow-up1616arrow-down1imageFind yourselflemmy.mlcoja to Programmer Humor@lemmy.ml • 2 years agomessage-square104fedilink
minus-squareAmylinkfedilink75•2 years 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; } };