3. Adding some story


#1

Can you please help me? I keep getting an error : "Oops, try again.
Your code doesn't look quite right. Check the Hint if you need help!"


#2

// Check if the user is ready to play!
confirm("Hello! Confirm to move on!")
var age = prompt("Whats your age?")
if(age < 13)
{
console.log("You're on your own");
}
else
{
console.log("Welcome aboard!");
}
console.log("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'")

try this I just used your words


#3

If that doesn't work then refresh your page and then click submit with everything still there. Sometimes is just won't stop saying your wrong


#4

Make sure you copy and past from the instructions. Don't type it yourself. That was my mistake.


#5

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


#6

You forgot to define your variable userAnswer, and ask the user if she wants to join Bieber on stage.
Here it is:

confirm("I am ready to play!");
var age = prompt("What is your age");
if(age < 13) {
console.log("You are allowed to play but we take no responsiblity");
}
else {
console.log("Let's get started!");
}
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?");