ejercicio 7
This commit is contained in:
@@ -52,5 +52,8 @@ 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")
|
||||||
Reference in New Issue
Block a user