My test won't load #3

Here’s my code

function switchOfStuff(val) {
  var answer = "";
  // Only change code below this line
switch (num) {
 
    case "a":
      answer = "apple";
      break;
    case "b":
      answer = "bird";
      break;
    case "c":
      answer = "cat";
      break;
      case "d":
      answer = "stuff";
      break;
      
  }
  default:
  answer = "stuff";
  break;
    return answer;  
  // Only change code above this line
  return answer;
}

console.log(switchOfStuff("a"));

Is it the code or my browser?

according to the console, I have some type of syntax error but i don’t know what it is.

  1. What is the variable num? You are switching on it, but it doesn’t exist in your code anywhere.
  2. The default case is outside the switch statement, which is a syntax error (it also doesn’t need a break because it’s the default case; there’s nothing to break from at that point, but that’s minor and won’t affect anything).
  3. You have two return answer

ok, I’ve added the corrections you suggested and the test still won’t run.

Here’s my code:

function switchOfStuff(val) {
var answer = “”;
// Only change code below this line

switch (val) {
case "a":
  answer = "apple";
  
case "b":
  answer = "bird";
  
case "c":
  answer = "cat";
  
  default:

answer = “stuff”;
}
return answer;
}

// Only change code above this line

}

console.log(switchOfStuff(“a”));
;