Stuck at 4. First move


#1


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


Hi all, so I'm stuck at this exercise. I started off copying everything from the instructions, but I got the "Oops, try again. Did you remember to console.log("Suddenly, Bieber stops and says, 'Who wants to race me?'"); ?"-error. I started searching here, and ended up copying the solution from other threads. Didn't work. Refreshed - didn't work. Tried in another browser - yep, the same. Am I really overlooking something basic?


// 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 allowed to play, but I take no responsibility for the consequenses";
    }
    
else
{
    console.log ="Game on!";
}

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

Fix this lines.
It should be console.log("Some text");

If its still doesnt work, do this:

Return to lesson 3, hit save & submit code right away and then click the green box saying: start next lesson.

Then, when you on lesson 4 again, hit save & submit code right away.
it should work (at least for me it did)


#3

thanks!

when I tried again this morning, it worked without changing anything..


#4

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