loading...

re: Switch is ok VIEW POST

FULL DISCUSSION
 

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.

code of conduct - report abuse