Unexpected End Of Input ERROR! Please Help


#1

Am Stuck At Code Your Own Adventure 2 Lesson 5.

I want to allow the user to choose the run option in my story.

I get an unexpected end of input error message!

user = prompt("You are in a forest suddenly you are surrounded by trolls! What do you do RUN, FIGHT?").toLowerCase();
switch(user) {
case 'fight':
var answer= prompt("Are you smart? ").toLowerCase();
if(answer== 'yes'){

    console.log("You only need one of the two. You defeat the troll!") 
}

if(answer=='no'){
    
    var answer= prompt("Are you strong?").toLowerCase();
    console.log("You only need one of the two. You defeat the troll!")
}
break;
var answer= prompt("Please Work")

#2

You have two if statement's in a row you should rather use elseif
Remember there's always the option of else after if