forked from marquez.juan/clase-8-DOM
Resolucion del 7mo ejercicio
This commit is contained in:
@@ -71,3 +71,9 @@ function limpiarLista(idLista) {
|
|||||||
i.remove();
|
i.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//ejercicio 7
|
||||||
|
const imagen = document.querySelector("#foto");
|
||||||
|
imagen.setAttribute("src", "foto2.jpg");
|
||||||
|
imagen.setAttribute("alt", "Locro");
|
||||||
|
console.log(imagen.getAttribute("alt"));
|
||||||
Reference in New Issue
Block a user