2. Old Enough To Play? - SyntaxError


#1


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


I've tried checking other posts and modifying my code to look like others', but it keeps coming back with "SyntaxError: Unexpected string."

Any help is appreciated!


confirm("I am ready to play!");
var age = prompt("What's your age?");

if(age < 13)

{
    console.log "You can still play, but you're too young to be online and we are not responsible for you."
}
else 
{
    console.log "Carry on and have fun!"
}


#2

console.log() use parentheses, they are missing in your case


#3

Thank you @stetim94!


#4