Syntax Error


#1

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

Syntax Error keeps coming up

confirm("I understand confirm!");
var age = prompt("What's your age");
if (age is less than 13)
{
    console.log("Your allowed to play but I take no responsibility");
} 
else
{
console.log("Have fun playing");
}

#2

HI this line

if (age is less than 13)

where you wrote is less you should put <


#3

^ have a look at this line

To check two values you use the compassion operators

Comparisons : Explanation

Conclusion:

if(age < 13) {

#4

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