Asking for feedback(6)


Can you find the problem pls? I cant find
// Check if the user is ready to play!
confirm("Are you ready to play?");
var age = prompt("whats your age");
if(age < 13){
console.log("You can play but we will dont take responsibility!");
else {
console.log("So go on and play this fantastic Game!");
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 on Bieber on stage?");
console.log=("You and Bieber start racing. It's neck and neck! You win by a shoelace!")
console.log=("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'")
var feedback=prompt("Rate the game 1-10");
console.log=("Thank you! we should race at the next concert!")
console.log=("I'll keep practicing coding and racing")


There seem to be a few issues. You need to review the syntax of your JavaScript.

For instance console.log is a function and invoking a function requires a parenthesis immediately after the invocation.


Then since it's a statement, JavaScript requires you to follow up the statement with a semicolon.



console.log("Thank you! we should race at the next concert!");

There are multiple places where your syntax needs to be corrected in this manner.


wow, thank you so much