I am getting error


#1

I am getting error.

confirm("Ready to play?");// Check if the user is ready to play!
var age = prompt("what's your age?");
if(age < 13) {
console.log("You can play but we assume no responsibility");
}
else{
console.log("let's play!");
}
var intro = "You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'"

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 userAnswer = prompt("Do you want to race Bieber on stage?");

if ("yes"){ console.log("come on up!");}

else {console.log("no problem");}

showing problem with suddenly Bieber stops line


4. First Move! Console.log error
#2

Copy and paste the exact quote. :slight_smile:


#3

Non-empty strings are always true. So even if someone answers "no" to your question the true response is what they will see.