From fc768f3aa0eb63b9a30e38921461dcd8d3ec74c7 Mon Sep 17 00:00:00 2001 From: lucio <47898791@terciariourquiza.edu.ar> Date: Tue, 26 May 2026 18:51:50 -0300 Subject: [PATCH] EJ3 terminado --- clase-9.js | 8 ++++++++ index.html | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/clase-9.js b/clase-9.js index 4a3d9a4..f4c308a 100644 --- a/clase-9.js +++ b/clase-9.js @@ -1,4 +1,5 @@ 1// + const botonContador = document.getElementById("contador-btn"); const parrafoContador = document.getElementById("contador-parrafo"); let contador = 0; @@ -9,3 +10,10 @@ botonContador.addEventListener("click", () => { }); 2// +const cajaTexto = document.getElementById("text-cont"); +const conatdorLetras = document.getElementById("contador-text") +let Letras = 0; +cajaTexto.addEventListener("input", () => { + Letras += 1; + conatdorLetras.textContent = `Letras escritas = ${Letras} `; +}); \ No newline at end of file diff --git a/index.html b/index.html index 8211f43..906a392 100644 --- a/index.html +++ b/index.html @@ -15,7 +15,8 @@
- + +

Letras escritas = 0