I don't understand the 'Adding some story' on Javascript


#1


// Check if the user is ready to play!
prompt("Are you ready to play?")
confirm("Well get ready!")
var age=prompt("What is your age?");

if("age===12") 
{
confirm("Time to get started");
} 
else
{
 console.log("Thank you for trying to play, unfortunatley  ,you're not eligable to play")
}
//introduction.
console.log("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'");


#2

You have to have a prompt that asks what the user's age is. Like so:

var age = prompt("What's your age");

#3

Then perhaps you would like to ask questions. Right now you're just sharing that you are not understanding. There isn't much to respond with to that.


#4

I tried to point out what was wrong with the code...


#5

I see that, but I'm not sure what you mean. My response was directed at the lack of questions in this topic, there's no request for help, just "I don't understand".


#6

Ok. :smiley: :smile:


#7

Thank you for responding to my lack of question, but I've finally figured this out!:slight_smile:


#8

Good job :laughing: :smile:


#9

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.