Old enough to play?


#1

I really need help with my java script what have I done wrong?

confirm ("I am ready to play!");
var age = prompt("Whats your age");

if (age is less than 13)
{
console.log ("sorry your to young to play this game");
}
else
{
console.log ( "ok play on and good luck!");
}


Coders under 13 years old
#2

You need to use the less than sign to check ..


#3

Thank you :slight_smile:


#4