ejercicio 7

This commit is contained in:
2026-05-18 16:42:06 -03:00
parent d5fffd0142
commit 78e9f0bc76

View File

@@ -51,6 +51,9 @@ function limpiarlista(){
const elementos = document.querySelectorAll(`#${idLista} li`) const elementos = document.querySelectorAll(`#${idLista} li`)
for (const elemento of elementos){ for (const elemento of elementos){
elemento.remove() elemento.remove()
}
} }
//ejercicio 7
} const imagen = document.querySelector("img")
imagen.setAttribute("src", "foto2.jpg");
imagen.setAttribute("alt", "Locro")