When I try to submit is says unexpected identifier


#1

Mine is not working also please help? Heres what I wrote:
// Check if the user is ready to play!
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 I take no responsibility");
} else {
console.log("Come on. Let's play the game");
}

And when I try to submit is says unexpected identifier


#2

Hi try to write you if statement like that if ( age < 13)


#3

Hi @tachaki, I think the system can't identify your if code of age is less than 13. You'll need to use age < 13 I believe :slightly_smiling: