coja to Programmer [email protected] • 1 year agoFind yourselflemmy.mlimagemessage-square99fedilinkarrow-up1620arrow-down128
arrow-up1592arrow-down1imageFind yourselflemmy.mlcoja to Programmer [email protected] • 1 year agomessage-square99fedilink
minus-squareLeo Uinolinkfedilink71•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; } };