So, I figured this doesn't go under Coding Help, because it says, "Torque Script problem?" when this is JS.
Basically, I'm trying to get through one of the exercises by making a Choose Your Own Adventure thing (anyone who has gone through Codecademy probably knows what I'm talking about), but it is giving me errors on my code so I figure I'm using a syntax problem.
// Check if the user is ready to play!
confirm("Are you ready to play?");
var age = prompt("How old are you?");
if (age < 6)
{
console.log("You have stated that you are under the age of 6. You are allowed to play, but I do not take responsibility for anything that may happen.");
}
else
{
console.log("Welcome to Choose Your Own Adventure!");
}Then when I run the code, an error message comes up:
Oops, try again. It looks like you didn't check for the user's age.
But I already did this. Can someone get a run-through on this?