buttons.forEach((button) => { button.addEventListener('click', () => { console.log("forEach worked"); }); });