Tell us what’s happening:
Describe your issue in detail here.
Hello, i’m not looking for a resolution, just for a little help.
if i call the function it works ! but is not correct.
i’ve add now the last console.log(function)
before it the output is undefined.
**Your code so far**
function caseInSwitch(val) {
let answer = "";
// Only change code below this line
switch (val) {
case 1:
answer = "alpha";
break;
case 2:
answer = "beta";
break;
case 3:
answer = "gamma";
break;
case 4:
answer = "delta";
break;
}
console.log(answer);
}
caseInSwitch(1);
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0
Challenge: Selecting from Many Options with Switch Statements
Link to the challenge: