Posts by Paulo Hainosz • 31 points
1 post
- 
		2 votes2 answers65 viewsQ: Events in JavascriptI’m studying you and I came across the following: const h1 = document.querySelector('h1'); //1 h1.addEventListener('click', () => { alert('Funcionou!'); }); //2 h1.onclick = () => {…