Help......First move!


#1


confirm("Are you ready to play??");
var age = prompt(" What's your age");
if (age<13){
 console.log("The developer is not responsible for you......");   
} else {
 console.log(" Let's go!!!...");   
}
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");


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

The error messege says, " Did you remember to console.log("Suddenly, Bieber stops and says, 'Who wants to race me?'"); ?"


#2

So their something wrong with this statement obviously and I double checked in my lesson to see and it does run an error. Simpliest way to fix this is to copy and paste the code from the lesson instructions in step 1.) into your code instead of the code line you have.


#3

I think I found the problem though, there's no space between says, and 'Who wants

console.log("Suddenly, Bieber stops and says,'Who wants to race me?'");
vs
console.log("Suddenly, Bieber stops and says, 'Who wants to race me?'");


#4

Yes! Well done. Glad your keen eyes found it! :smiley: Impressive :thumbsup:


#5

Thanks bibleman13 and ghostlovescore....
Got it!!


#6

Glad to have helped! Those syntax errors and spacing issues are always annoying to deal with haha


#7

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