Add A Second Button To Your Doublehtml Page From Exercise

Add a second button to your double.html page from Exercise 5.19. Each time this new button is clicked, the value in the text box named number-Box should be halved. For example, if the box contains the number 1,024, clicking the button should reduce the number to 512.
If you start with a value of 1,024 in the text box, how many times must you click the halving button before the displayed value is reduced to 1? How many times if you start with 2,048?

Posted in Uncategorized