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