HELP 4. First move


#1

I need your help

// Check if the user is ready to play!
confirm("I am ready to play!");
var age = prompt("What's your age");
if(age < 13){
console.log("You are not old enough to play");
} else {
console.log("You can play");
}
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 want to race me?'");
var userAnswer = prompt("Do you want to race Bieber on stage");
confirm("Yes")

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

Why? Help me please


#2

2 problems.

First:

confirm("Yes") ///this line shouldn't exist

Second:

Check your spelling on every word in your last console.log() in this class it has to be exactly the same as it is shown in the instructions.


#3

Thank for your reply

I changed but it still doesn't work ...// Check if the user is ready to play!
confirm("I am ready to play!");
var age = prompt("What's your age");
if(age < 13){
console.log("You are not old enough to play");
} else {
console.log("You can play");
}
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");
still the same "Oops, try again. Did you remember to console.log("Suddenly, Bieber stops and says, 'Who wants to race me?'"); ? :frowning:


#4

found it! you are missing a space. it goes between the "," at the end of "says," and the beginning of 'Who..."

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

#5

THANKS!! It was hard..only one space and I sat on this so long ...uff...


#6

I was also stuck on this , in the end I was missing a single quotation mark ...sigh... have to focus and make sure you leave nothing out :sweat_smile:


#7

2 posts were split to a new topic: 4. it didn't work


#8

what am I doing wrong? Help please...
Check if the user is ready to play!
confirm ("Play time!");

var age = prompt("what's your age?");

if(age < 13)

{
console.log("your allowed to play but i take no resposibility.");
}
else
{
console.log("No playing for you!");
}
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?");