Help switch


#1

var answer = prompt("what is your fav pet !");

switch(answer) {
case 'Dog':
console.log("Dog are good pets !");
break;
case 'Cat':
console.log("Cats make great pets !) ;
break;
case 'Fish':
console.log("Fish are lame");
break;
default:
console.log(" I dont think thats a good pet ! ");

}


#2

Help what am i doing wrong ??


#3

Please post a link to this exercise, as well as include the error message(s) you are seeing. Thank you.


#4

This line is missing a closing quote in the log parameter.

"Cats make great pets !"

#5

Thank you i missed it !!!


#6