Basic JavaScript - Multiple Identical Options in Switch Statements

Tell us what’s happening:
I keep receiving a "Missing Semicolon " error in an area where im sure one isnt required. pls help
Describe your issue in detail here.

Your code so far

function sequentialSizes(val) {
  let answer = "";
  // Only change code below this line
  swtich (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"; 
     break; 
  }



  // 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/106.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Multiple Identical Options in Switch Statements

Link to the challenge:

‘switch’ not ‘swtich’

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