Cant find my error in the if/else


#1

var userAnswer=prompt

prompt("Do you want to race Bieber on stage?");

if(userAnswer === "yes"){
command.log("You and Bieber start racing. It's neck and neck! You win by a shoelace!")
}else(userAnswer==="no"){
command.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'")
}


#2

Hey @gamercop Try using console.log instead of 'command.log:slight_smile: and also you dont need to print the userAnswer condition in your else statement that's also a problem.


#3

And you dont have a sentence for your prompt

"var userAnswer=prompt" ???

"var userAnswer = prompt("Do you want to race Bieber on stage?");" do this instead


#7

very tired at work messing around appreciate the help