8/14 Switch Statement


#1

Not sure what's wrong with my code here :frowning: Help!

var team = prompt("Who is your fave NFL team?");

switch(team) {
case 'Steelers':
console.log("That's great");
break;

case 'Redskins:
console.log("Boo");
break;

case 'Cowboys':
console.log("Bigger Boo");
break;

default:
console.log("That's not a team");
break;

};


#2
case 'Redskins:

you forgot to close the string here.


#3

// Found one problem with your syntax!
var team = prompt("Who is your fave NFL team?");

switch(team) {
case 'Steelers':
console.log("That's great");
break;

case 'Redskins:
console.log("Boo");
break;

case 'Cowboys':
console.log("Bigger Boo");
break;

default:
console.log("That's not a team");
break;

};