From 2165677d154c08de566e9f0ddd7942b6b2876212 Mon Sep 17 00:00:00 2001 From: Eugenio Zapata <37448644@terciariourquiza.edu.ar> Date: Thu, 21 May 2026 23:06:11 -0300 Subject: [PATCH] Ejercicio 2 --- ejercicios-clase-8.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index 10da9ff..71d2a84 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -3,4 +3,11 @@ console.log("El archivo esta vinculado correctamente.") const parrafo = document.querySelector("h1"); console.log(parrafo.textContent); -parrafo.textContent = "Hola a todos!"; \ No newline at end of file +parrafo.textContent = "Hola a todos!"; + +function agregarLista() { + const items = document.querySelectorAll(".lista-comidas"); + for (const item of items) { + item.classList.add("resaltada"); + } +} \ No newline at end of file