ejercicio 2

This commit is contained in:
Nicolas Murua
2026-05-13 20:26:24 -03:00
parent ccab67b2b7
commit 67173a3a9f
2 changed files with 8 additions and 0 deletions

View File

@@ -2,4 +2,11 @@
function cambiarText(texto){ function cambiarText(texto){
const textoH1 = document.querySelector("h1"); const textoH1 = document.querySelector("h1");
textoH1.textContent = texto; textoH1.textContent = texto;
}
function agregarItem(){
const listaComida = document.querySelectorAll(".item-comida");
for (const i of listaComida){
i.classList.add("item-lista");
}
} }

View File

@@ -101,6 +101,7 @@ h1 {
font-weight: bold; font-weight: bold;
} }
/* ========================= /* =========================
IMAGEN IMAGEN
========================= */ ========================= */