Adding some story errors


#1

Hi, I keep getting the alert that I'm doing something wrong, but I can't see what it is! My code is fine up until the part where the first bit of the story comes in (console.log=("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'")) My code is below.

// 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=("play on, but i will take no responsibilities for the nightmares you have MUAHAHA")
} else {
console.log=("play on if you dare")
}
console.log=("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'")

Really confused. Help would be gladly appreciated :smile:


#2

assigning of a variable:

x = 5;

what you did, is assign a value to a variable called console.log. However, console.log is a function you use to print things to the console:

console.log("i am getting logged to the console");

you are also missing a few semi-colons


#3

thank you so much for the quick reply! i understand now.