ej1 terminado

This commit is contained in:
2026-05-23 20:03:47 -03:00
parent ddefc238dc
commit 43d20f2ac5
2 changed files with 14 additions and 2 deletions

View File

@@ -1 +1,11 @@
// Agregar acá el código javascript para los ejercicios
1//
const botonContador = document.getElementById("contador-btn");
const parrafoContador = document.getElementById("contador-parrafo");
let contador = 0;
botonContador.addEventListener("click", () => {
contador += 1;
parrafoContador.textContent = `Botón clickeado ${contador} veces.`;
});
2//