More practice with switch Syntax error


#1

What is the error here? I've gone over the code for 10 times, but cannot find the syntax error..

var answer = prompt("Hoe vind je zelf dat het gaat?");

switch(answer) {
case 'goed':
console.log("Dat vind ik ook!");
break;
case 'medium':
console.log("je kan beter inderdaad!");
break;
case 'slecht';
console.log ("Inderdaad. Don't quit your day job");
break;
default:
console.log ("Dat is geen normaal antwoord");

}


#2

see

case 'slecht' ;

you have used ; not :


#3

OMG Thanks so much. Such a small typo, but I did not see it. Much appreciated!