Tell us what’s happening:
hi,i think have done the right thing but am still being told that : sequentialSizes(1)
should return “Low”. what should i do
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";
break;
}
// Only change code above this line
return answer;
}
// Change this value to test
sequentialSizes(1);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/multiple-identical-options-in-switch-statements