I'm stuck on 6, getting syntax error, "unexpected identifier"


#1

I can't find out whats wrong, does anyone see anything off? Also, is there another interpreter on the web I can use to cross-check these codes that anyone knows of?

Thanks,


#2

Please post your code so we can help you.


#3

Whoops, sorry. Here is the code.

confirm("Are Ready to Ruuuuumble?");
var age = prompt("what's your age");
if(age<13) {
console.log("get moms permission")}
else{
console.log("spend some money!")}
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 ("What would you rate this 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 .")
}