ejercicio 7

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

View File

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