Basic JavaScript Lab
This is a the first JavaScript lab. You are to write a web page containing JavaScript that will calculate the number of seconds old you will be at your next birthday. The script must prompt the user for his or her name and then age in years and then output the age of the user in seconds to the page as follows:
Hello -name-, you are -number of seconds- old.
You may use the following formula to do the calculation:
number of seconds = (number of years)*(365)*(24)*(60)*(60)
Save your work as lab6.html.