What am i doing wrong?


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");
console.log("Enjoy playing!");


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


'age is less than '
age < 13


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