3. Code Your Own Adventure!


#1

confirm("I am ready to play");
var age = prompt("What's your age");
if(age is less than 13)
{
console.log(" You are responsible for your actions");
}
else
{
console.log(" Have fun ");
}
console.log("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'");

What did I do wronge?


#2

Your if statement is wrong. Valid commands will be highlighted in Codecademy, is less than isn't a thing. You should know that you read < as 'is less than'. The correct code:

if (age < 13) {