Problem with IF function showing both possible outcomes


#1

Hello, I just did the exercise and everything work fine except that my "if" condition for Yes and No and then for rating above 8 always show both of the results

So even if my rating is >8 I get the 2 answers
Thank you we should race at the next concert
I'll keep practicing coding and racing
Same for the JB race I always get the race and not racing result.

So where did I mess up?. Thanks for the future reply

// Check if the user is ready to play!
confirm("I understand confirm!")
var age = prompt("What is your age")
if(age<= 13){
console.log("Sorry you are too young")
} else 
{
    console.log("Welcome and have fun")
    }
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 (userAnswer==="no")
{console.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'")}
var feedback = prompt("Rate our game out of 10")
if(feedback>8){
    console.log("Thank you we should race at the next concert")
}else (feedback<=8)
{
    console.log("I'll keep practicing coding and racing.")
}

#2

Remove. else does not take a conditional.