Help


#1


Code Your Own Adventure!
Old enough to play?



Oops, try again. There was a problem with your syntax.


Replace this line with your code. 

var age=prompt("What Is Your Age");
if (age < 13)
{
    console.log(You Are Allowed To Play But We Take No Responsibility!);
}
        else
{
    console.log(Play ON!!!);
}


What did I do wrong?


#2

Be sure to enclose string values in quotes:

"You Are Allowed To Play But We Take No Responsibility!"

"Play ON!!!"

#4

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