Help on 4


#1

confirm ("Are you ready to play?");
var age = prompt ("How old are you?");
if (age<18)
{
console.log("You are allowed to play but we take no responsibility.");
}
else
{
console.log("Go ahead! Play on!");
}
console.log("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'");

console.log("Suddenly, Bieber stops and says, 'Who wants to race me?'")

var userAwnser === prompt("Suddenly, Bieber stops and says, 'Who wants to race me?'");


#2

Wait are you sure it is 4/7? Or are you saying 5/7? :confused:


#3

4/7 i think i went ahead and added else statement.

If i were to remove all that and be left with if(userAwnser=== "yes") it would give me an error "expected expression, got end of script"


#4

You're supposed to end with:

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


#5

Ah I got it, thanks so much!