DEV Community

Discussion on: Why switch is better than if-else

Collapse
 
jdtjenkins profile image
jdtjenkins

Only evaluating the expression once, not having to use a temp variable. That's a big seller to me, that feels much neater. Great article!