7/14 Syntax Error


#1

var answer = prompt("Add your question here!");

switch(answer) {
case 'The problem I keeep getting:
console.log("SyntaxError: Unexpected identifier");
break;
case 'Kelsey'
console.log("umm...)
}
And I kept getting this error: SyntaxError: Unexpected token ILLEGAL
Help!


#3

seems like your missing the closing ' here.


#4

// The things wrong with your Syntax
var answer = prompt**("Add your question here!"); // Where did my Favorites list go?**

switch(answer) {
case 'The problem I keeep getting: // case--> Choices: Ice Cream,Cream Cake..ect...
console.log("SyntaxError: Unexpected identifier");// 'I love Cream Cake!'
break; // This Ok!
case 'Kelsey' // See choice above ^
console.log("umm...) // I hate Ice Cream!!!
// break;
default;
console.log(""): //Choices not on the list (eggs) (candy) (money)
}