What am i doing wrong?


#1

confirm("I understand confirm!");
var age = prompt("What's your age");
if (age is less than 13)
{
console.log("You're allowed to play but we take no responsibilities");
}
else
{
console.log("Enjoy playing!");
}


#2

is less then 13, is not javascript syntax, < is the javascript syntax you need


#4

Replace
'age is less than '
with
age < 13


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.