2. old enough?


#1

i cant find out what im doing wrong and i cant find any other related topics.

my code :

confirm("are you ready to play?");
var age = prompt("whats your age?");

if(age is < 13)
{
console.log("you cant play");
}
else
{
console.log("continue");
}


#2

@kevina123,
Your IF-condition
should be

age  < 13

Which is the less than < comparison operator
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators


#3

Your reply if age < 13 should be that they can play, but you take no responsibility.