Having troble with this one, thanks in advance :) (Old enough to play?)


#1

// Check if the user is ready to play!
confirm("I am ready to play!");
var age = prompt("What's your age");
if (age > 13);
{
(console.log You're allowed to play but i can take no responsibility for the content!);
}
else
{
(console.log Go ahead and play until your hearts content!!!!);
}


#2

now it checks if age is more then 13, you should check if it is less


#3

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