Code Your Own Adventure Syntax Error


#1

https://www.codecademy.com/courses/javascript-beginner-en-x9DnD/0/2?curriculum_id=506324b3a7dffd00020bf661#

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!);
}


#2

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


#3

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