// DEFINIR UM EVENT LISTENER

// -------------------------------------------------------
// function evento(){
//     document.querySelector("h1").textContent = "Novo texto"
// }

// let botao = document.querySelector("button")
// botao.addEventListener('click', evento)

// -------------------------------------------------------
// let botao = document.querySelector("button")
// botao.addEventListener('click', function() {
//     console.log('clique')
// })

// -------------------------------------------------------
// let botao = document.querySelector("button")
// botao.addEventListener('click', () => console.log('clique'))

// -------------------------------------------------------
// document.querySelector("button").addEventListener('click', (e) => {
//     console.log('clique')
//     e.target.textContent = "Alterado"
//     document.querySelector("h1").textContent = "Texto alterado"
// })

















/*
    Autor: Daniel Oliveira
    Email: danieloliveira.webmaster@gmail.com
    Manaus/Amazonas/Brasil
    15/03/2023
*/
