JavaScript Switch

up:: JavaScript

Switch

// Checks with strict equality (===)
switch(lowercaseLetter) {
  case "a":
    console.log("A");
    break;
  case "b":
    console.log("B");
    break;
  default:
	defaultStatement;
	break;
}