Need help with 4


#1

I put

confirm("Time to plaay");
var age
var age = prompt("What's your age?");
if (age < 13) {
console.log( "You are allowed to play but you take no responsibility.")
} else {
console.log( "Good Luck")
};

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?");

does anyone know what I did wrong?


#2

I tried your code in a windows 8.1 IE11 and got a pass with your code...
Maybe

under certain circumstances you can shoot your Browser in an
inconsistent state.

Therefor it is of an advantage to know that you have 2 reset facilities:

One is the use of the F5-key which does a refresh Browser

and

Two, select&copy your code
Then use the Reset Code button of the course-window,
then paste your code back in.

Addendum
General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).


#3

Im having the same problems except it says weird things. but my coding is exactly the same


#4

@ruiem
Please give us

  • the FULL code you are using
  • the link to the lesson
  • and be specific about the Oops-or-Error messages you get ( the EXACT output )