Please help i am stuck on "adding some story"i keep getting a syntax error


#1

// Check if the user is ready to play!
confirm("I understand confirm");
var age prompt("whats your age?");

if{("age >13")
console.log("you are allowed to play but I take no responsibility.")

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


#2

Here

if{("age >13")

You should put the { after your if condition like that

if (condition) {
# do Something 
}

#3

// Check if the user is ready to play!
confirm("I understand confirm");
var age prompt("whats your age?");

if("age >13"){
console.log("you are allowed to play but I take no responsibility.")

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


#4

Here

if("age >13"){

Remove the " " around age >13 . And I think that it should be age < 13

And then here

var age prompt("whats your age?");

You should put a = between age and prompt