From 78e9f0bc7603834c18d9e79359f978f002985f69 Mon Sep 17 00:00:00 2001 From: Luca Scarano <47073568@terciariourquiza.edu.ar> Date: Mon, 18 May 2026 16:42:06 -0300 Subject: [PATCH] ejercicio 7 --- ejercicios.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ejercicios.js b/ejercicios.js index bc87f64..fbbe69d 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -51,6 +51,9 @@ function limpiarlista(){ const elementos = document.querySelectorAll(`#${idLista} li`) for (const elemento of elementos){ elemento.remove() + } } - -} \ No newline at end of file +//ejercicio 7 +const imagen = document.querySelector("img") +imagen.setAttribute("src", "foto2.jpg"); +imagen.setAttribute("alt", "Locro") \ No newline at end of file