8. All on your own - Or not


#1

I've checked other people's codes who've done this exercise and how they fixed it, but I can't seem to find the problem. I keep getting "SyntaxError: Unexpected end of input"

var x = prompt("Who is your favorite MLP character?");

switch(x){
    case 'princess luna':
        console.log("She's mine too! :D");
        break;
    case 'discord':
        console.log("Discoooooord! I'm howlin' at the moon!");
        break;
    case 'pinkie pie':
        console.log("PARTY TIME!");
        break;
    case 'flash sentry':
        console.log("And the fandom rages.");
        break;
    default:
        console.log("Cool! (Is that even a character on the show? >.<)");

#2

Hi you just forgot to close the switch()

switch(x) { #open the switch statement


} #close the switch statement

#3

Thank you! Computers can be so finicky.