WHY wont this work!?!


#1

Please tell me what the syntax error is

www.codecademy.com/courses/javascript-beginner-en-x9DnD/0/2?curriculum_id=506324b3a7dffd00020bf661w

SyntaxError: Unexpected token ILLEGAL

`

confirm('Are you ready to play?')
var age = prompt("What's your age?");
if (age < 13) {
console.log('You can play but I take no responsibility.
')
} else {

console.log('You can go ahead and play!')

}


#2

This post was flagged by the community and is temporarily hidden.


#3

should be in one line

 console.log('You can play but I take no responsibility.
 ')

like

console.log('You can play but I take no responsibility.')

or use \ like

console.log('You can play but I take no responsibility.\
')

#4

Thanks For Helping!!!!!! :smile: