So this is my code, to check the user's age, but whenever I try and save it, I get a dialog box saying:
I haven't checked for the user's age? What am I missing? Example of my code below:
// Check if the user is ready to play!
confirm("Are you ready to play?");
var age = prompt("What's your age");
console.log("you are ready");
console.log("You are not the required age!");