coja to Programmer Humor · 1 year agoFind yourselfimagemessage-square104fedilinkarrow-up1650arrow-down129
arrow-up1621arrow-down1imageFind yourselfcoja to Programmer Humor · 1 year agomessage-square104fedilink
minus-squareLeo Uino@lemmy.sdf.orglinkfedilinkarrow-up76·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; } };