How to add/push a new object to array upon mouse click in p5.js

Later on I changed to balls.length and still doesn’t work…