#How to properly make the reset button to function in JS?

4 messages · Page 1 of 1 (latest)

amber shale
#

How about setting up a Scrim so we can easily help you?

pale eagle
amber shale
#

In your newGame() function do you don't need to register call reset() on the reset button... in fact there is no reset method on a button so this won't work... What you need to do instead is set the state of your game back to a starting condition (home score, guest score both to 0 should do it...

rain stone
#

Bill is correct, setting the inner text of your home & guest score back to zero should do the trick 🌱