620
Find yourself (lemmy.ml)
submitted 10 months ago by coja@lemmy.ml to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] lwhjp 76 points 10 months ago

TDD

const max12 = (x, y) => {
    if (x === 1 && y === 2) {
        return 2;
    } else if (x === 7 && y === 4) {
        return 7;
    } else {
        return x;
    }
};
this post was submitted on 22 Oct 2023
620 points (95.7% liked)

Programmer Humor

31990 readers
57 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS