Old Enough to Play? Troubles


i'm having trouble with Old Enough to Play.

I keep getting a syntax error. Not sure what I am doing wrong.

confirm("Are you ready to play?");
var age = prompt("What is your age?");
if (age < 13) {
    console.log("You are allowed to play, but I take no responsibility.");
} else {
    console.log:("Play on!");


Nevermind. I figured it out. I just noticed I had a colon before the "Play on" message, but not the "You are allowed to play message". Took it away and it worked.


Well I'm glad you managed to resolve your problem @systemsurfer07143. Keep coding hard :laughing:!


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