Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const button = document.getElementById("boton")
- const button2 = document.getElementById("boton2")
- let anotacion = document.querySelector('anotacion')
- let anotacion2 = document.querySelector('anotacion2')
- let contador = 0;
- let contador2 = 0;
- boton.addEventListener("click", () => {
- contador++;
- anotacion.textContent = contador;
- })
- boton2.addEventListener("click", () => {
- contador2++;
- anotacion2.textContent = contador2;
- });
Advertisement
Add Comment
Please, Sign In to add comment