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