Tell us what’s happening:
Whenever i run this thing
It tells me there is an error with case
Changing the code to the correct one doesn’t’work either
and now it refuses to even run the test.
No reply need.
Your code so far
function caseInSwitch(val) {
var answer = "";
// Only change code below this line
case 1:
console.log("alpha"):
break;
case 2:
console.log("beta"):
break;
case 3:
console.log("gamma"):
break;
case 4:
console.log("delta"):
break;
// Only change code above this line
return answer;
}
caseInSwitch(1);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36.
Challenge: Selecting from Many Options with Switch Statements
I’m just pointing out that the code provided in your main post cannot even run so that the next person who searches the forum for help on this challenge does not mistakenly believe that the code you wrote is correct syntax.