I need help pls


#1

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!");
}

.

#2

@bethanyb12,

To express is less than
you will have to use the comparison operator <
like

(age < 13)

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators


#3

oops thanks I am really enjoying coding:)