Help plz! I need it until tonight!


#1

My code is as below.
I keep on getting a syntax error.
please help!!!

var user = prompt("You are walking through a forest.Then, you find a big, spooky mansion! You are curious and you open the door. You see two ways on your left and right. Where do you go?", "LEFT or RIGHT?").toLowerCase();

switch(user) {
case 'left':
var scared = prompt("Are you scared?","YES or NO?").toLowerCase();
var time = prompt("Is it time to go to an academy?", "YES or NO?").toLowerCase();
if (scared==='yes'&&time==='yes'){
console.log("You are scared and you need to go to an academy!! You stop your adventure. Ha! No fun!");
}else if(scared==='yes',time==='no'){
console.log("You are scared but you keep on going! Yeah!!!!");
var ghost = prompt("You see a ghost!! Huh? He's dancing!! Do you want to dance with him?", "YES or NO?").toLowerCase();
if (ghost==='yes'){
console.log("You become friends with the ghost and you go back home with him!");
}else{
console.log("The ghost becomes upset and he eats you!!! Try again next time!!");
}else if(scared==='no',time==='yes'){
console.log("You need to go to an academy but you ignore it and keep on going.");
var ghos = prompt("You see a ghost!! Huh? He's dancing!! Do you want to dance with him?", "YES or NO?").toLowerCase();
if (ghos==='yes'){
console.log("You become friends with the ghost and you go back home with him!");
}else{
console.log("The ghost becomes upset and he eats you!!! Try again next time!!");
}else{
console.log("You are brave and tough!!!");
var ghosta = prompt("You see a ghost!! Huh? He's dancing!! Do you want to dance with him?", "YES or NO?").toLowerCase();
if (ghosta==='yes'){
console.log("You become friends with the ghost and you go back home with him!");
}else{
console.log("The ghost becomes upset and he eats you!!! Try again next time!!");
}
break;
case 'right':
var hungry = prompt("Are you hungry?", "YES or NO?").toLowerCase();
var bored = prompt("Are you bored by this adventure?", "YES or NO?").toLowerCase();
if (hungry==='yes'||bored==='yes'){
console.log("You go back home!! No fun!!!");
}else{
console.log("You keep on going!!");
var zombie = prompt("You see a zombie!! Will you run, walk past him quietly, or fight??", "RUN, WALK, or FIGHT?").toLowerCase();
if (zombie==='run'){
console.log("The zombie hears you and he eats you!!! Try again next time!!");
}else if (zombie==='walk'){
console.log("You walk past him quietly and he doesn't notice you. You go in another door and you find yourself in your room!");
}else{
console.log("You fight him, and you win!!! You take the zombie's head to your town and brag!!");
}
break;
default:
console.log("Try again! Type LEFT or RIGHT!!");

}