Error comes -( It looks like you didn't check for the user's age) , what to do?


#1

confirm("i am ready to play")
var age = prompt("What's your age?");
if (age <20)
{
console.log("alowed to play but i dont take responsibility")
}
else
{
console.log(" yeahh lets paly")
}


#2

it's asking you to check: If age is less than 13 not 20


#3

i get it but how to correct it can you show


#4

just change 20 to 13. if (age < 13)


#5

thanks a lot. it was stupid mistake.