Hi everyone,
Can anyone help me with this?
function caseInSwitch(val) {
var answer = "";
// Only change code below this line
switch (answer) {
case 1:
consol.log("alpha");
break;
case 2:
console.log("beta");
break;
case 3:
console.log("gamma");
break;
case 4:
console.log("delta");
break;
default:
console.log("default");
break;
}
// Only change code above this line
return answer;
}
// Change this value to test
caseInSwitch(1);
It’s from the selecting from many options with Switch Statements challenge, number 190. The guide is the same as the tutorial and when I researched on the internet, it shows exactly how I have written the code but mine is not passing?
Cheers
Mike.