Tell us what’s happening:
Your code so far
function switchOfStuff(val) {
var answer = "";
// Only change code below this line
switch (val) {
case a:
"apple";
break;
case "b":
bird;
break;
case "c":
cat;
break;
default "d":
stuff;
break;
}
// Only change code above this line
return answer;
}
// Change this value to test
switchOfStuff(1);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/adding-a-default-option-in-switch-statements