Adding Some Story Help


#1

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


I don't understand what I am doing wrong. Please, help!


console.log("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'")


#2

Did you delete the rest of your code?
The age confirmation part?
Don't delete it! It doesn't say in the instructions to delete it.


#3

I didn't delete the rest of my code. I copied and pasted from the instructions. I'm not sure. Here is the rest of my code:

// Check if the user is ready to play!
confirm("Let's Go!");

var age = prompt("What's your age?")

if(age < 13)
{
console("Play at your own risk")
}
else(13 < age)
{
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.'")


#4

Seems fine to me. I even copied it to my environment (Chrome) and it passed. What does the error say?


#5

I'm also using Chrome. the error in the box says 'TypeError: console not a function' and the other one says 'Your code doesn't look quite right."


#6

It's probably the condition in the else statement.


#7

It's working fine now. I just exited out of the page and went back to it. Thanks for the help!


#8

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