//html <button>My Button</button> document.querySelector("button").addEventListener('click', handlClick); function handlClick() { alert("I got clicked!") }