DEV Community

Discussion on: Escape If-else hell in Javascript

Collapse
 
melvnl profile image
Melvin Liu

it's more about readability, and clean code, just imagine when you have more than 20 different conditions.