DEV Community

Discussion on: Which would you prefer and why?

Collapse
 
lozadaomr profile image
Omar Lozada

Yeah, been thinking of using switch statement.

It's just that for me it looked much harder to read at first compared to using if statement.