Help me please


#1

I'm stuck on code your own adventure 2

The error I am getting is "SyntaxError: Expected ';'


// Check if the user is ready to play!
confirm("are you ready to play?");
var age === prompt("what is your age");
if (age > 13){
    console.log("sorry, you need parental supervision");
}
else {
    console.log("go ahead, and have fun!");
};


#2

Hey,

You only need one =.

That's a really bad error message actually.


#3

thankyou so much I have been stuck on this for days!


#4

Days? Really? Why didn't you ask sooner?


#5

Pssst,

Click the solution symbol on my post :wink:


#6

Looks like this @sashbash ( ^.^)===~


#7

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