feat/excersices #6

Open
saucedo.facundo wants to merge 8 commits from saucedo.facundo/clase-8-DOM:feat/excersices into main
Showing only changes of commit f80218541e - Show all commits

View File

@@ -59,4 +59,13 @@ const newSection = () => {
list.appendChild(li);
});
div.appendChild(list);
}
// Ejercicio 6
const cleanList = (id) => {
const list = document.getElementById(id);
while (list.firstChild) {
list.removeChild(list.firstChild);
}
}