Part 3: Adding Some Story. What am I doing wrong?


#1

I cannot get past this section. I have tried so many different things. Any idea what's going on?

My code:
confirm("I am ready to play!");
var age = prompt("What's your age");
if(age<13)
{
console.log=confirm("You are allowed to play but I take no responsibility");
}
else
{
console.log=confirm("Cool! Play on!");
}
console.log("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'");

I got: Oops, try again. Your code doesn't look quite right. Check the Hint if you need help!.
TypeError: console.log is not a function

I tried changing it to:
console.log=confirm("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'");

I got this: "Oops, try again. Make sure your string is correct and is between quotation marks!"

I've tried ending both with and without the semi colin too. Any idea what I'm doing wrong?


#2

You do not need to say, "console.log=confirm". Just type, console.log("Cool! Play on!"), this will fix the problem. Do the same for, console.log=confirm("You are allowed to play but I take no responsibility");.


#3

That worked! Thank you so much!