feat/excersices #6
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user