I need help with first move


#1


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


I keep getting an error message saying:
Oops, try again. Did you remember to console.log("Suddenly, Bieber stops and says, 'Who wants to race me?'"); ?


confirm("Are you ready to play");// Check if the user is ready to play!
var age = prompt("What's your age?");
if(age < 13) {
    console.log = ("Im sorry, you can still play but we cannot be held responsible");
}
else {
    console.log = ("YAY, let's get on with the game ");
}
    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 console.log() works like that

console.log("Hello word!")

without the = ..So after you remove it Refresh the page


#3

It worked now thanks, I was stuck on that for hours


#4

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