2. Old Enough to Play


var age = prompt("What's your age");
if (var age < 13) {
console.log("You are allowed to play but we take no responsibility!");
else {
console.log("Play on and win! You can do it!");
Says for the error SyntaxError: Syntax error



You will have to change your

if (var age < 13) {


if (age < 13) {


Thanks! That fixed it. Never even noticed it


4 posts were split to a new topic: It says syntax error


// Check if the user is ready to play!
confirm("ready to have fun? [NOTE: clicking 'OK' says you have required I.Q. to play]");
var age = prompt("What is your name, Esquire?");
if(age <= 23)
console.log("Leaving Game");
console.log("This 'Game' will decrease your I.Q.")
says i didn't check the age


Can not figure out why this will not be accepted...

confirm ("I am ready to code!")
var age=prompt("What's your age");
If ( age < 13) {
console.log("You're allowed to play but we take no responsibility");
else {
console.log("let's go!");


before all of that did you do
var age = 16
you have to put a age if that dosent work sorry:grinning:


@tagsolver57652 try adding a semicolon after the

confirm("I am ready to code!")


thanks for the hints but it still won't take it!!!


What kind of "Oops..."- or Error- message are you receiving....