javascript switch case number code example
Example: Javascript switch case code format
switch(type) {
case "SomeString":
// Functionality
break;
case "OtherString":
// Functionality
break;
default:
// Functionality
break;
}
switch(type) {
case "SomeString":
// Functionality
break;
case "OtherString":
// Functionality
break;
default:
// Functionality
break;
}