JavaScript Exercise 08: Switch Statement

In the last exercise, we’ve learn the if…else statement in JavaScript. Today, we are going to learn another conditional statement: the switch statement. The difference between if…else and switch statement is that switch is designed to handle more cases. Let’s take a look at the following example:
Read More