My code is not working and i don't know why. Please Help!

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

Challenge: Multiple Identical Options in Switch Statements

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.


Should these be strings? Right now they are variables.

1 Like

HI @ezechizoba2019 !

The issue has already been pointed out to you.
But in the future, please make sure to read the error message more carefully.
The current error message you are getting says this

That helps to tell you where the issue is.
When it says it is not defined, that means you have not created a variable called Low.

Being able to read error messages is really important.
If an error message confuses you, then please ask about it in your post and we can help you :grinning:

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