Stuck with Code Your Own Adventure: "Are you old enough"



I followed the instruction and I type this code:

// Check if the user is ready to play!
confirm("Are you ready to play?");
var myAge;
var age = prompt("What's your age?");
if(age < 13);
    console.log("You are allowed to play but I take NO RESPONSIBILITY!");
    console.log("OK! Let's play!");

Now, it telling me that I have an error on line 8 with is "else." I clicked the "save and run" button and it tells me "SyntaxError: Unexpected token else."

Any help would appreciated! Thank you!


Never mind, guys! I simply removed semicolon. I figured that out on my own!
Ha, ha.


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