4.) First move! I'm stuck on console.log error can't find it


I get error message did you remember to console.log "Suddenly, Bieber stops and says, 'Who wants to race me?'"
So what's wrong?

confirm ("Are you ready to play?")// Check if the user is ready to play!
var age = prompt("What is your age?");
if(age < 13) {
console.log("Not responsable for user under age of 13");
else {
    console.log("Welcome to the game, Enjoy!");

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?");


There's no space between says, and 'Who' but there should be.


Awesome thanks man. That worked.


Also this technically is just a codecademy error js it wouldn't actually cause an error correct?


Because it's a string, javascript doesn't actually care where what's inside the string. Codecademy does. It wasn't an error on the editor's part, but rather yours. They check for specific results, and a space can change whether the result is right or not.


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