Plz help


#1


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


SyntaxError: Unexpected identifier
Oops, try again. There was a problem with your syntax.


// Check if the user is ready to play!
confirm("Are you ready to play!")
var age = prompt("What's your age?")
if(age is less than 13) {

    consol.log("You'r allowed to play but you take no responsibility")
}
else { "otherwise"
    console.log("Awesome, I promise you will not regret playing this game")
}


#2

You have to repeat the operators lesson.
You should use symbol <, not "is less than"
and it is console, not consol


#3

im still having trouble.


#4

confirm("Are you ready to play!")
var age = prompt("What's your age?")
if(age < 13) {

console.log("You\'re allowed to play but you take no responsibility");

}
else { "otherwise"
console.log("Awesome, I promise you will not regret playing this game");
}

Please use the above code, i see that 'console' is written as 'consol' in the first block of 'i statement'


#5

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