Code Your Own Adventure:First Move!


#1

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

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


Replace this line with your code. 

// Check if the user is ready to play!

var age = prompt("What's your age");
if( age < 13 ) {
    console.log("You're allowed to play but I take no responsibility.Good luck anyway!");
} else {
    console.log("Good luck on your game! Thanks for answering!");
}
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?")


#2

Hi,

the issue is here: console.log("Suddenly,Bieber stops and says,'Who wants to race me?'");
You forgot two spaces in the string: Suddenly, add one space after comma and before "Bieber" and ...says, add add one space after comma and before 'Who wants...

Here is correct code for this task, so you can compare this code with yours:

// Check if the user is ready to play!

var age = prompt("What's your age");
if( age < 13 ) {
console.log("You're allowed to play but I take no responsibility.Good luck anyway!");
} else {
console.log("Good luck on your game! Thanks for answering!");
}
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?")


#3

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