Multiple Identical Options in Switch

Multiple Identical Options in Switch
0

#1

Hello guys please assist whats wrong with the code below, I cannot pass the first three tests

Your code so far

function sequentialSizes(val) {
  var 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;  
}

// Change this value to test
sequentialSizes(1);

Your browser information:

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

Link to the challenge:


#2

In JavaScript, strings are case sensitive, so “low” is not the same as “Low”. Check the instructions again, for which spelling it should be.


#3

Thank you soooo much buddy, that was silly of me not to check the case! Sorted