6/7 I need help


#1

// Check if the user is ready to play!
confirm("Are your ready to play ?");

var age= prompt("What's your age");
if (age < 13)
{
console.log("You ar allowed to play but i take no responsibility!");
}
else
{
console.log("You may play, you can do it!")
}
console.log("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'");
console.log("Suddenly, Bieber stops and says, 'Who wants to race me?'");
var userAnswer= prompt("Do you want to race Bieber on stage?");
if (userAnswer==="yes") {
console.log("You and Bieber start racing. It's neck and neck! You win by a shoelace!")
} else {
console.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'")
}
var feedback= prompt("Rate my game out of 10");
if (feedback > 8)
{
console.log ("Thank you! We should race at the next concert!");
else
{
("I'll keep practicing coding and racing.");
}
I entered this and it says there is a syntax error


#2

("I'll keep practicing coding and racing.");

console.log("I'll keep practicing coding and racing.");

#3

what about that sentence I do not understand what is wrong


#4

I then did this but it said it was wrong
// Check if the user is ready to play!
confirm("Are your ready to play ?");

var age= prompt("What's your age");
if (age < 13)
{
console.log("You ar allowed to play but i take no responsibility!");
}
else
{
console.log("You may play, you can do it!")
}
console.log("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'");
console.log("Suddenly, Bieber stops and says, 'Who wants to race me?'");
var userAnswer= prompt("Do you want to race Bieber on stage?");
if (userAnswer==="yes") {
console.log("You and Bieber start racing. It's neck and neck! You win by a shoelace!")
} else {
console.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'")
}
var feedback= prompt("Rate my game out of 10");
if (feedback > 8)
{
console.log ("Thank you! We should race at the next concert!");
else
{
console.log("I'll keep practicing coding and racing.");
}


#5

You forgot to close your if's '}'