I don’t know why this is not working when I run the test.
I rand the code in console and it works just fine. Am I missing something?
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;
}
sequentialSizes(1);
Hello and welcome to freecodecamp forum. When you post your questions please click the get help button in the challenges section and then create a post button then post it. That way we can understand which challenge it is from and give you a better answer. Also the post and code in it will be formatted better so it’s easier to identify the problem.
I have edited your post to include the challenge link, so we know what you are working on.
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
Yeah, we all make mistakes like that. And yeah, we all feel like idiots when you do it. As you get better, you’ll get better and spotting them, but the mistakes just get more subtle - they never go away completely. Coding is a humbling experience.