Help! I don't know what I did wrong!


#1


https://www.codecademy.com/en/courses/javascript-beginner-en-x9DnD/0/2?curriculum_id=506324b3a7dffd00020bf661#

SyntaxError: Unexpected keyword 'else'

confirm("I am ready to play!");
var age = prompt("What's your age");

if (age < 13);
    {
        console.log("they're allowed to play but you take no responsibility.");
    };
    
else
    {
        console.log("play on!");
    };


#2

your problem is you have way to many semi-colons. Get rid of them and you should be able to pass.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.