Multiple Identical Options in Switch Statements Help

Why isn’t this correct?

My code so far


function sequentialSizes(val) {
var answer = "";
// Only change code below this line
switch(val){
case val >= 1 && val <=3:
answer = 'Low';
case val >= 4 && val <= 6:
answer = 'Mid';
case val >= 7 && val <= 9:
answer = 'High';
}


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

sequentialSizes(1);

Your browser information:

Challenge: Multiple Identical Options in Switch Statements

Link to the challenge:

You are trying to use a switch like an if statement. That’s not how switches work.

In the given example

switch(val) {
  case 1:
  case 2:
  case 3:
    result = "1, 2, or 3";
    break;
  case 4:
    result = "4 alone";
}

There are 4 cases. Each case matches as single matching value of val. You need to use 9 cases with the different possible values of val.

So it means the case value for switch statements isn’t as flexible as “if” conditions.
I really thought they should be.
Thank you.