2. Too Old enough to play


#1

var age = prompt("What's your age?");
if (age<13)
{
console.log ("You are allowed to play, however, I take no responsibility.");
}
else
{
console.log ("Welcome to the game");
}


#2

What's the complaint?


#3

// Check if the user is ready to play!
confirm("Are you? I am ready to play");
var age = prompt("What's your age");
if(age < 13)
{
console.log("Sorry, you are not old enough");
}
else
{
console.log("You are old enough! Access Granted!");
}

Oops, try again.
There was a problem with your syntax.

I dont know where I am going wrong? please help


#4

@jewpanese Your code is fine, try refreshing the page.
In the future, please create a new topic rather than hijacking someone else's topic.