3. Adding some code. Syntax Error


Here is my code:

// Check if the user is ready to play!
confirm("Let's play!")

var age = prompt("What's your age");

if( age < 13)
console.log("Let us begin! Developer claims no responsibility for user's experience");
console.log("Let us begin! Enjoy!");

console.log{"You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'")

I click on submit and I get this:
SyntaxError: Unexpected token {


Hi try to remove the { } around confirm


Just after your comment (//Check if the user is ready to play!) to got this {confirm("Let's play!")} change it to this confirm("Let's play!")

as you can see, without { } :slightly_smiling:


Thanks. I picked that habit up because the previous exercises let me submit with the confirm wrapped with curly brackets.


Got rid of the curly brackets, still getting the same error


Try Post your new code


I figured out what was wrong.