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 f73326402a - Show all commits

View File

@@ -62,4 +62,13 @@ function agregarComidasLitoral() {
contenedor.appendChild(lista);
document.body.appendChild(contenedor);
}
function limpiarLista(idLista){
const items = document.querySelectorAll(`#${idLista} li`);
for (const item of items){
item.remove();
}
}