Age confirmation


#1


Here is my code:

// 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)
{
//do this code
console.log("Play but we take no responsibility")
}
else //"otherwise"
// do this code

 console.log("Enjoy the game")
 }

I would appreciate help or an explanation as to what I did wrong.


#2

nice pseudo code! i would use < to check if the age is actually less then 13