"It looks like you didn't check the user's age!" Error... WHY?!


confirm("I am ready to play your Game, Master!");

var age = prompt ("What's your age?");

if(age < 18){
console.log("Eh... ok, I guess you can still play.");
console.log("Congrats! You are old enough for this gay-m!");

THIS IS MY CODE for the Justin Bieber thing, but I can't tell why I keep getting this error!


It says in the instructions...

Then write an if/else statement. If age is less than 13, use console.log to tell the user that they're allowed to play but you take no responsibility.

You put 18.


I tried with 13 also, I should have pasted that code in, but i got the same error! idk i found a copy/paste online for it haha thanks, though, bud!


No problem! :smile:
Although that should have worked...whatever. At least you fixed it.