Modify your years.html page from Chapter 5 (Exercise 5.10) so that it uses a function to encapsulate

Question:

Modify your years.html page from Chapter 5 (Exercise 5.10) so that it uses a function to encapsulate the statements for accessing the number of years, calculating the corresponding number of seconds, and displaying the seconds in the page. The button in the page should call this function when clicked?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: