Code your own adventure #2. HELP!


#1


https://www.codecademy.com/courses/javascript-beginner-en-x9DnD/0/4?curriculum_id=506324b3a7dffd00020bf661

Oops, try again. Did you remember to console.log("Suddenly, Bieber stops and says, 'Who wants to race me?'"); ?


confirm("Are you ready to play?");
var age = prompt("What's your age?");
    if (age<= 13)
    {
        console.log("You are allowed to play but I take no responsibility");
    }
    else
    {   
        console.log("Keep calm and 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 amd says, 'Who wants to race me?");
var userAnswer= prompt("Do you want to race Bieber on stage?");


#2

the string printed should be an exact match, you have amd instead of and somewhere in the string, just copy the string from the instructions


#3

confirm("Are you ready to play?");
var age = prompt("What's your age?");
if (age<= 13)
{
console.log("You are allowed to play but I take no responsibility");
}
else
{
console.log("Keep calm and 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 userAnswer= prompt("Do you want to race Bieber on stage?");

How about now? It still wont let me pass.


#4

You need a single ' before your " because you used a ' before Who but never closed it.


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.