Tell us what’s happening:
Your code so far
function caseInSwitch(val) {
var answer = "";
// Only change code below this line
switch(val) {
case "1":
return "alpha";
break;
case "2":
return "beta";
break;
case "3":
return "gamma";
break;
case "4":
return "delta";
break;
// Only change code above this line
return answer;
}
// Change this value to test
caseInSwitch(val);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36 OPR/63.0.3368.107
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/selecting-from-many-options-with-switch-statements/