Code Academy "Create Your Own Adventure"


#1

This is my code. I have no idea why it's saying the syntax is wrong.
Any help would be appreciated.
Thanks :smile:

// Check if the user is ready to play!
confirm("Are you ready?");
var age = prompt("What's your age");
if (age <= 13);
{
console.log ("I'm sorry, you're too young to play this game")
}
else
{
console.log ("Good luck and my the odds be ever in your favour!");
}


#2

Hi @coreblaster32884
You have one extra character in your if else statement block


#3

could you help on this it keeps saying oops problem with syntax.....from the bieber concert code

var feedback = prompt("Rate game out of ten");
If( feedback=>8)
console.log("Thankyou! We should race at the next concert!");
} else {
console.log("I'll keep practicing coding and racing.");


#4

Double check your if else code block

You are missing an opening and closing curly bracket :relaxed: