DEV Community

loading...

Discussion on: And then the interviewer asks, "Can you do this with less code?"

Collapse
jpantunes profile image
JP Antunes • Edited

Nice one! Here's a list I made a few months back: dev.to/jpantunes/js-warmup-exercis...

On a second look, your version only shaves off 2 characters and introduces a possible bug imho because you don't control how many parameters are passed to the function, so calling it either less or more than 3 values it will output a wrong value, right?

Forem Open with the Forem app