Imagine that users of your stats.html page would like to perform repeated experiments with the dice simulator.

Question:

Imagine that users of your stats.html page would like to perform repeated experiments with the dice simulator. It would greatly help these users if they were able to reset the roll and doubles counts within the page. This can be accomplished by reloading the page, i.e., by clicking on the browser's reload button or reentering the page's address. However, a more elegant solution would be to add another button to the page labeled "Reset counters". When the user clicks this button, the values in the two text spans should be reset to 0. Add such a button to your page and verify that it behaves appropriately?

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

Step by Step Answer:

Question Posted: