const button = document.getElementById('button'); button.addEventListener("click", function() { console.log('click'); })