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

Beautifier.io

function draw() {
  background(0);
  for (const b of balls)  b.display();
}