Oops, try again. Make sure your string is correct and is between quotation marks!


#1

So I get the following error message:

Oops, try again. Make sure your string is correct and is between quotation marks!

Saw a few posts saying to refresh my browser, but it did not work, can someone give a hint on what is wrong?


confirm ("Start Game!")// Check if the user is ready to play!
var age = prompt("What's your age?");
if (age <= 13)
{
    console.log = ("Nothing I can do about it")
}
else
{
    console.log = ("Go ahead")
}
console.log = ("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'")


#2

console.log is not called with an =, as it isn't an assignment function. Remove the = after all the console.log's.


#3

Solved,
Many thanks!


#4

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