I’m looking for help. I’ve written the code for this example as instructed. My final statements was written as follows:
case 4: answer = “delta”;
break;
But when I press ‘Run the Tests’, nothing happens. Am I missing something?
I’m looking for help. I’ve written the code for this example as instructed. My final statements was written as follows:
case 4: answer = “delta”;
break;
But when I press ‘Run the Tests’, nothing happens. Am I missing something?
When I pres Run the Tests nothing happens and I am unable to progress further. Is it my code?
function caseInSwitch(val) {
var answer = "";
// Only change code below this line
case 1: answer = "alpha";
break;
case 2: answer = "beta";
break;
case 3: answer = "gamma";
break;
case 4: answer = "delta";
break;
// Only change code above this line
return answer;
}
// Change this value to test
caseInSwitch(1);
Thank you for your help!