Logical operators: SyntaxError: Unexpected token ILLEGAL


#1

What is wrong here?
var user = prompt("While walking in the forrest you run into a monster! Do you want to fight him, run or are you gonna go up on a tree and wait for him to leave?").toUpperCase();

switch(user) {
case 'FIGHT':
var strong = prompt("Are you strong (YES or NO)?").toUpperCase();
var weapon = prompt("Do you have any weapon ?").toUpperCase();
if(strong ==='YES' || weapon ==='YES') {
console.log("Nice work you beat the monster");
}
else {
console.log("Sorry you lose! Maybe you should've choose other option!");
}
break;
case 'RUN':
var fast = prompt("Are you fast (YES or NO)?").toUpperCase();
var headStart = prompt("Did you get a head start").toUpperCase();
if(fast === 'YES' || headStart === 'YES') {
console.log("Great!!! You got away);
}
else{
console.log("Sorry the monster got you! You are not fast enough to get away!);
}
break;
case 'TREE':
var wiry = prompt("Okey! Are you wary (YES or NO)?").toUpperCase();
var balance = prompt("Are you good in balancing?").toUpperCase();
if(wiry ==='YES' && balance === 'YES') {
console.log("Nice! The monster left - so hurry up and leave before he came back");
}
else{
console.log("You lose - too bad! Clearly you are not wiry enough");
}
break;
default:
console.log("I don't understand your choice! Please try again");
}


#2

you are missing the double quote before )


#3

Thank you, I didn't saw that.