Tell us what’s happening:
Why is it saying that the task is not fullfilled? I did what it wanted from me.
Your code so far
function caseInSwitch(val) {
var answer = "1";
// Only change code below this line
switch (answer) {
case "1":
console.log("alpha");
break;
case "2":
console.log("beta");
break;
case "3":
console.log("gamma");
break;
case "4":
console.log("delta");
}
// Only change code above this line
return answer;
}
// Change this value to test
caseInSwitch(1);
Your browser information:
Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0
.
Link to the challenge:
https://www.freecodecamp.org/challenges/selecting-from-many-options-with-switch-statements