Lesson 7 unterminated string literal


#1

var answer = prompt("What's your favorite kind of burger?","Type burger type here");
switch(answer) {
case 'sweet potato burger':
console.log("That's my favorite kind of burger too!");
break;
// Add your code here!
case 'beef':
console.log("Moooooooooooooooooooooo");
break;
default:
console.log("That's a strange kind of burger...);
};

I'm getting a error, "SyntaxError: unterminated string literal"
How can i fix that?


#2

See where the quote is missing at the end of the string literal?


#3

Aha! I looped over this forever trying to figure it out haha. Thanks for the help :smiley: