I need guidance on Adding features to our bouncing balls demo

link is : https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Adding_bouncing_balls_features