What am I doing wrong here?


#1



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


I am pretty sure I have included the line and followed correct syntax, so I am wondering why I am getting this error


Replace this line with your code.


#2

Can you post your code to show us the syntax?


#3

var age = prompt("what is your Age?");
if (age<13)
{
console.log("You are allowed to play, however, Sosytee Inc takes no responsibility on any problems that may arise");}
else
console.log("Great to have you onboard, let get playing");

confirm("Yes Im done and ready to 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?");


#4

The spelling is really sensitive with this kind of question.

Put a space between "Suddenly," and "Bieber"

Put a space between "says," and "Who"

That was the solution I found.


#5

Still doesnt work , this is so frustrating, thanks for the help


#6

Your code:

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

My change:

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

It should just be a spelling problem.


#7

solved , thank you, ikt was a spelling mistake after all