3/7 Oops, try again! Make sure your string is correct and in between quotation marks?


#1

// Check if the user is ready to play!
confirm("Are you ready to play?")
var age = prompt("How old are you?");
if(age < 13)
{ (console.log=("You can play but I can't take responsibilty!")) }
else { (console.log=("Have fun! This'll be good!")) }

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


#3

please read
https://developer.mozilla.org/en-US/docs/Web/API/Console/log


#4

It took me like 30 minutes to debug this (I didn't know I had to refresh). I tweaked your code a little, ewillard42, and it would be good, and if it says "console.log is not a function", refresh. Then, it would work. :smiley:

Here:

confirm("Are you ready to play?");
var age = prompt("How old are you?");
if(age < 13)
{
    console.log("You can play but I can't take responsibilty!"); }
else { console.log("Have fun! This'll be good!"); }

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

#5

guys im still struggling here but i did it the say