Old enough to play? cant find out error :(


#1



// Check if the user is ready to play!
confirm("Are you ready to play?");
var age = prompt("What's your age?");
if ( age < 10)
{ console.log ("You're allowed to play but I take no responsibility"); }
else 
 { console.log ("Play on!"); }


#2

it says that i didnt check for the user's age which i did.. unless im missing something


#3

the exercise wants you to check for the age, which is specified in the instruction (which is 13 year, not 10)


#4

thank you! lol it wasn't very specific on which age it wanted.


#5

step 3 of the instructions:
Then write an if/else statement. If age is less than 13, use console.log

In which way, is this not specific?


#7

//Could you help me with my code. The problem says to be that prompt is not a function
confirm("Ready to play");
var age = prompt("What's your age");

if (age > 13)
{
console.log("hey're allowed to play but you take no responsibility.");
}
else
{
console.log("You are huge lets play");
}


#8

seems you hit a glitch, try a different browser. Your code is fine


#9

Dude Same problem with me.


#10

if you want someone to help you, please create your own topic with full code + error message + question