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