Syntax Error - task "Old enough to play"


#1

confirm("I am ready to play")

var age prompt("What is your age?");

if (age < 13) {
    console.log("Allowed to play but no responsibility accepted");
    
} 
else {
    console.log("Play on!");
}

I keep getting syntax error wth the above - any suggestions welcome! Thanks


#2

missing semi colon on confirm ?


#3

Resolved - I forget the = after variable! Thank you :slight_smile:


#4

oh yes :slight_smile:


#5