From 31030688a4964b1aaefb3f828032a4a242bf1c16 Mon Sep 17 00:00:00 2001 From: Bruno Date: Tue, 19 May 2026 15:36:56 -0300 Subject: [PATCH] Resolucion del 7mo ejercicio --- ejercicios-clase-8.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index 3d69d91..9f7716d 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -70,4 +70,10 @@ function limpiarLista(idLista) { for (const i of listaALimpiar) { i.remove(); } -} \ No newline at end of file +} + +//ejercicio 7 +const imagen = document.querySelector("#foto"); +imagen.setAttribute("src", "foto2.jpg"); +imagen.setAttribute("alt", "Locro"); +console.log(imagen.getAttribute("alt")); \ No newline at end of file