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