Fundamentals11 / 12
Up next

switch

const day = 3;
// each case needs break, or control falls through
switch (day) {
  case 0:
    console.log("Sunday");
    break;
  case 3:
    console.log("Wednesday");
    break;
  default:
    console.log("some other day");
}
What you're solving

match a value with strict ===