Create a Web page named remainder.html that contains a text box and a button. When the button

Question:

Create a Web page named remainder.html that contains a text box and a button. When the button is clicked, JavaScript statements should (1) access the number entered in the text box, (2) calculate the remainder after dividing that number by 2, and (3) display that remainder in the page. Use your page to verify that the remainder is always 0 for an even number and 1 for an odd number.

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

Step by Step Answer:

Question Posted: