View Single Post
Old 02-20-2013, 09:41 AM   PM User | #4
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,044
Thanks: 197
Thanked 2,412 Times in 2,390 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
And please read the form guidelines about the use of code tags. Putting your message in big red characters turns people off (it did me - I just moved on!) and is considered boorish.

if(userAnswer==="yes"){

What if the user types Yes, y or Y?

But I see that your userAnswer comes from a confirm box so is true or false, not yes or no.

if(age > = 18 ){

What is the user answers "Mickey Mouse"?

var feedback=prompt("Please rate this game 1-10");

What if the user enters -10 (my evaluation, I am afraid! )
__________________

All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.

Last edited by Philip M; 02-20-2013 at 09:47 AM..
Philip M is offline   Reply With Quote