Synax error: unexpected string


#1

// Check if the user is ready to play!

confirm ("I am ready to play!");

var Age = prompt ("what's your age");

if ( Age < 13 ) { console.log "■■■■'s for real"; }
else { console.log "■■■■'s done"; }


#2

@methodjumper25237
if ( Age < 13 ) { console.log( "■■■■'s for real"); }
else { console.log ("■■■■'s done"); }
You need to put brackets before and after the string, hope I helped.


#3

Being a smartass I kinda begun going over the previous course, so didn't capture the muscle memory for those brackets. I don't dig codecademy not just providing the samle finished course's code. Let's make a forum about something of a child's play.