Modify your round.html page from Exercise 7.2 so that it uses a function to encapsulate the statements

Question:

Modify your round.html page from Exercise 7.2 so that it uses a function to encapsulate the statements for accessing the number, rounding it, and displaying it 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: