How can I stop my number of balls being added in my HTML canvas exponentially?
I currently have a code that when the user clicks on addBall(), a new ball is created on a canvas and they bounce around. However, when the user clicks this button more and more, the number of balls added is…