From 799a081fbeba849474526534e218b443542e3d5c Mon Sep 17 00:00:00 2001 From: Luca Scarano <47073568@terciariourquiza.edu.ar> Date: Sun, 17 May 2026 23:52:00 -0300 Subject: [PATCH] ejercicio 2 --- ejercicios.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ejercicios.js b/ejercicios.js index 25c1707..2751611 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -3,3 +3,11 @@ function titulo(){ document.querySelector("h1").textContent = "Gastronomia Argentina"; } +//ejercicio 2 +function ejercicio2() { +const items = document.querySelectorAll("li"); +for (const item of items) { + item.classList.add("item-lista"); + item.style.color = "red" +} +} \ No newline at end of file