ej1 terminado
This commit is contained in:
12
clase-9.js
12
clase-9.js
@@ -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//
|
||||
|
||||
Reference in New Issue
Block a user