First Move (code your own adventure)


Currently struggling completing this step here. Are we perhaps supposed to have created an If/else statement after my second prompt? The error I receive upon submitting my code asks if i have remembered to log "Suddenly, Bieber stops and says,'Who wants to race me?'"); Any help would be greatly appreciated! Thanks everyone in advance. Here is a copy of my code thus far as well as the instructions for the step.

*currently all logs and prompts are displayed when run, making me think i am supposed to add an if/else statement

Instructions-Under your existing code, print out the storyline: "Suddenly, Bieber stops and says, 'Who wants to race me?'"
Then declare a variable userAnswer. Make it equal a prompt that asks the user "Do you want to race Bieber on stage?". This will be the question that you ask your user

confirm("I am ready to play!")
var age=(prompt("whats your age?"));
console.log("You're to young!")
else {
console.log("Have a Blast!")
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?'"));


A Single space can change everything.... Problem solved.