Code Your Own Adventure Syntax Error


My code keeps turning up this SyntaxError but I cannot figure out what is wrong. Please help!

SyntaxError: Unexpected token ILLEGAL

confirm("I am ready to play!");
var age = prompt("What's your age");

if (age < 13) {
    console.log("You can play, but we take no responsibility");
} else {
    console.log("Play on!);


Oops, I see now that I missed a quotation after console.log("Play on!")


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