When should I use switch case in JavaScript?

Use switch instead of if when:

Leave a Reply

Your email address will not be published. Required fields are marked *