It says syntax error


#1

It says syntax error for me plz help me I have this.

// Check if the user is ready to play!
confirm("Are you ready to play!");
var age = prompt("What's your age?");
if(age < 13) {

console.log(You are allowed to play but I take no responsibility for your actions.);

}else{

console.log("You are ready to play!");

}


2. Old Enough to Play
#2

@flowerdada4,
you will have to use a string ....

"You are allowed to play but I take no responsibility for your actions."

#3

Omg thx so much! I just tried it and it worked! Thanks! I did not notice that at all. :grinning::smiley::smile::smile:


#4