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