Selecting Options with Switch Statements

Tell us what’s happening:
I don’t know why it shows error at each and every case. Help me out and Thanks in advance.

Your code so far

function caseInSwitch(val) {
  var answer = "";
  // Only change code below this line
  case 1: answer = "alpha";
  case 2: answer = "beta";       
  case 3: answer = "gamma";        
  case 4: answer = "delta";
  // Only change code above this line  
  return answer;  

// Change this value to test

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0.

Link to the challenge:

You don’t actually have a switch-statement. :wink:

Try putting your cases inside a switch:

switch(val) {

Yeah alright, I did not notice that :grimacing: