So it is telling me that my code is wrong that i need ;after case but : is what it tells me to use in the examples that i find. what is the problem am i doing something wrong?
Your code so far
function caseInSwitch(val) {
var answer = "";
// Only change code below this line
case 1:
answer = "alpha";
break;
case 2:
answer = "beta";
break;
case 3:
answer = "gamma";
break;
case 4:
answer = "delta";
break;
// Only change code above this line
return answer;
}
// Change this value to test
caseInSwitch(1);
Your browser information:
windows 10 64bit
Google Crome
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/selecting-from-many-options-with-switch-statements/