DEV Community

Discussion on: Switch is ok

Collapse
 
torstendittmann profile image
Torsten Dittmann

My favourite Javascript switch feature is the ability to use switch(true) followed by cases with with comparison operations.

Looks much cleaner compared to a lot of if/else.