Modify your surface.html page from Exercise 9.8 so that it ensures that both the height and weight

Question:

Modify your surface.html page from Exercise 9.8 so that it ensures that both the height and weight values entered by the user are positive values. If either of the values in the text boxes is less than or equal to 0 when the button is clicked, then the surface area should be displayed as NaN. Otherwise, the surface are should be calculated and displayed as before?

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

Step by Step Answer:

Question Posted: