Old enough to play


#1



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

syntax error: unexpected token else

confirm("I am ready");
var age = prompt("What's your age");
if(age <= 13);
{
    console.log("play on but creator takes no responsibility");
}
else
{
    console.log("lets do this");
}


#2

i do not know what i am doing wrong here


#3

See it now :wink: ? (Need 20 characters...)


#4

are you saying that i need to have 20 characters in the statement. I apologize but i am confused. I still do not see what you are talking about


#5

No i needed 20 characters to post in the fourm... basically your problem is you cant have a semicolon, after your if condition... THis is the syntax:

if(something  == blahblahblah){
/*Do Something*/
}
else{
/*Do Something else..*/
}

#6

lol ok i see it now i had the semi colon. i took it out and now everything runs fine. thanks