From 8366bbb7d62372b2280fa558004874af101fa1b4 Mon Sep 17 00:00:00 2001 From: Bruno Date: Thu, 14 May 2026 22:57:52 -0300 Subject: [PATCH] Avance del tercer ejercicio --- ejercicios-clase-8.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index 4538876..0cd2f95 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -10,9 +10,20 @@ for (const i of item) { console.log(i.textContent); } + function itemLista() { const item = document.querySelectorAll("ul li"); for (const i of item) { i.classList.add("item-lista"); } } + + + +function agregarItem() { + const listaInicial = document.querySelector("#lista-inicial"); + for (const l of listaInicial) { + const nuevoElemento = document.createElement("li"); + } + return(nuevoElemento) +} \ No newline at end of file