Need Help with Javascript Code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • daisy5427
    New Member
    • Mar 2008
    • 1

    Need Help with Javascript Code

    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??
  • aswath
    New Member
    • Mar 2008
    • 18

    #2
    Originally posted by daisy5427
    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??

    plz do post ur code which u have done so far.....
    regards

    Comment

    Working...