Syntax Error


#1

Here's my code. I keep getting a syntax error, which doesn't make sense. Any thoughts?

// Check if the user is ready to play!
confirm("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(play on!);
}


#2

You missed quotations in your console logs.


#3

It should be like this.
// Check if the user is ready to play!
confirm("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("play on!");
}