Old enough to play?


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");
console.log ( "ok play on and good luck!");

Coders under 13 years old

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


Thank you :slight_smile: