Learning javascript


#1

this is the code its not working, leaning javascript.

// Check if the user is ready to play!
confirm("ï understand confirm!");
var age = prompt("whats's your age");
if (age < 13 )
{ console.log("sorry you cannot play it")}
else { console.log("lets play")}
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.'")}


#2

In what way is it not working? What should it do differently?


#3

This code is right i don't find anything wrong on this programme...