1//javascript multiple case switch statement
2var color = "yellow";
3var darkOrLight="";
4switch(color) {
5 case "yellow":case "pink":case "orange":
6 darkOrLight = "Light";
7 break;
8 case "blue":case "purple":case "brown":
9 darkOrLight = "Dark";
10 break;
11 default:
12 darkOrLight = "Unknown";
13}
14
15//darkOrLight="Light"
1switch(type) {
2 case "SomeString":
3 // Functionality
4 break;
5 case "OtherString":
6 // Functionality
7 break;
8 default:
9 // Functionality
10 break;
11}