Basic JavaScript - Multiple Identical Options in Switch Statements

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

function sequentialSizes(val) {
  let answer = "";
  // Only change code below this line
switch (val) {
    case 1:
    case 2:
    case 3:
      answer = "Low";
      break;
    case 4:
    case 5:
    case 6:
      answer = "Mid";
      break;
    case 7:
    case 8:
    case 9:
      answer = "High";
  }

  // Only change code above this line
  return answer;
}

sequentialSizes(1);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Multiple Identical Options in Switch Statements

Link to the challenge:

Your code is fine. You may need to refresh the page for it to pass the challenge however, because there’s currently an issue with the console not updating properly.

  1. Copy your code
  2. Refresh with CTRL+F5
  3. Paste your code

Now it should pass.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.