From d5fffd01428316a5baa024af3d6a7b4fd98599e6 Mon Sep 17 00:00:00 2001 From: Luca Scarano <47073568@terciariourquiza.edu.ar> Date: Mon, 18 May 2026 16:31:45 -0300 Subject: [PATCH] ejercicio 6 --- ejercicios.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ejercicios.js b/ejercicios.js index 066752a..bc87f64 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -47,3 +47,10 @@ seccion.appendChild(lista) document.body.appendChild(seccion) } //ejercicio 6 +function limpiarlista(){ +const elementos = document.querySelectorAll(`#${idLista} li`) +for (const elemento of elementos){ +elemento.remove() +} + +} \ No newline at end of file