I need to ask user his/her name and his her birth year. The variables I use are UserName, birthYear, currentYear, and calculatedAge. I need to output to the user a message that says "Hello, userName, you are calculatedAge years old. I get to where the program runs and asks the questions but when I get the response it says that the age is 2008, which I have as the current year. Any suggestions??
Need Help with Javascript Code
Collapse
X
-
Originally posted by daisy5427I need to ask user his/her name and his her birth year. The variables I use are UserName, birthYear, currentYear, and calculatedAge. I need to output to the user a message that says "Hello, userName, you are calculatedAge years old. I get to where the program runs and asks the questions but when I get the response it says that the age is 2008, which I have as the current year. Any suggestions??
plz do post ur code which u have done so far.....
regards
Comment