From 8da25b5006d469bacf7f848dc172fec19fa9b39c Mon Sep 17 00:00:00 2001 From: Eugenio Zapata <37448644@terciariourquiza.edu.ar> Date: Mon, 25 May 2026 15:39:59 -0300 Subject: [PATCH] Ejercicio 5 --- ejercicios-clase-8.js | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index 0426207..c608ac3 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -37,6 +37,37 @@ if(contenedor){ const parrafosImportantes = Array.from(oracion).filter(palabra => palabra.textContent.toLowerCase().includes("importante")); parrafosImportantes.forEach(parrafo => { - parrafo.classList.add("destacado"); + parrafo.classList.add("destacado"); }); } + +//ejercicio 5 + +function comidaLitoral(){ + const nuevoDiv = document.querySelector("div"); + + const nuevoH2 = document.createElement("h2"); + nuevoH2.textContent = "Comidas del Litoral argentino: "; + nuevoDiv.appendChild(nuevoH2); + + const nuevoUl = document.createElement("ul"); + nuevoH2.appendChild(nuevoUl); + + const nuevoLi = document.createElement("li"); + nuevoLi.textContent = "Chupin de pescado"; + nuevoUl.appendChild(nuevoLi); + + const nuevoLi2 = document.createElement("li"); + nuevoLi2.textContent = "Guiso Carrero"; + nuevoUl.appendChild(nuevoLi2); + + const nuevoLi3 = document.createElement("li"); + nuevoLi3.textContent = "Mbeyú" + nuevoUl.appendChild(nuevoLi3); + + const nuevoLi4 = document.createElement("li"); + nuevoLi4.textContent = "Pescado a la parrilla" + nuevoUl.appendChild(nuevoLi4); +} + +//ejercicio 6 \ No newline at end of file