minus-squareLeo Uino@lemmy.sdf.orgtoProgrammer Humor@lemmy.ml•Find yourselflinkfedilinkarrow-up1·11 months agoTDD const max12 = (x, y) => { if (x === 1 && y === 2) { return 2; } else if (x === 7 && y === 4) { return 7; } else { return x; } }; linkfedilink
TDD
const max12 = (x, y) => { if (x === 1 && y === 2) { return 2; } else if (x === 7 && y === 4) { return 7; } else { return x; } };