how to turn events on and off in Javascript
Hello, so I am experiencing a problem in my javascript app where I cannot stop a user spamming a button. The app is used to draw three random numbers from a range. when a button is clicked, a number is drawn and a special animation plays, then the next number can be drawn. I am having trouble preventing the user from spamming...
![](https://kbin.cafe/media/cache/resolve/entry_thumb/cd/04/cd0492868ec7a27f44dd6f2903f8058e25a1b8d6c5c69491f8e5c09c51836b3c.png)