Pull request Nicolas Murua #2

Open
murua.nicolas wants to merge 9 commits from murua.nicolas/clase-8-DOM:ramaMurua into main
Showing only changes of commit b92b2428a7 - Show all commits

View File

@@ -9,4 +9,14 @@ function agregarClase(){
for (const i of listaComida){
i.classList.add("item-lista");
}
}
function agregarItem(texto){
const lista = document.querySelector("#lista-inicial");
const nuevo = document.createElement("li");
nuevo.textContent = texto;
lista.appendChild(nuevo);
}