WIPull #3

Open
arteche.mateo wants to merge 9 commits from arteche.mateo/clase-8-DOMprkkkk:mateo-arteche-rama into main
Showing only changes of commit b19a10f4b6 - Show all commits

View File

@@ -17,4 +17,16 @@ for(const lista of agregarClase){
}
claseLi(); //Ejercicio 2
claseLi(); //Ejercicio 2
function agregarItem(texto){
const lista1 = document.querySelector("#lista-inicial");
const agregarItemNuevo = document.createElement("li");
agregarItemNuevo.textContent = texto;
lista1.append(agregarItemNuevo);
}
agregarItem("ejemplo1");
agregarItem("ejemplo2");
agregarItem("ejemplo3"); //Ejercicio 3