Leo Uino
lwhjp@lemmy.sdf.org
Joined
2 posts • 3 comments
Oh, that’s fun! (And looks like an easy way to lose track of a few hours as well…)
TDD
const max12 = (x, y) => {
if (x === 1 && y === 2) {
return 2;
} else if (x === 7 && y === 4) {
return 7;
} else {
return x;
}
};