forked from marquez.juan/clase-8-DOM
correccion de la funcion del ejercicio 2
This commit is contained in:
@@ -4,7 +4,7 @@ function cambiarText(texto){
|
|||||||
textoH1.textContent = texto;
|
textoH1.textContent = texto;
|
||||||
}
|
}
|
||||||
|
|
||||||
function agregarItem(){
|
function agregarClase(){
|
||||||
const listaComida = document.querySelectorAll(".item-comida");
|
const listaComida = document.querySelectorAll(".item-comida");
|
||||||
for (const i of listaComida){
|
for (const i of listaComida){
|
||||||
i.classList.add("item-lista");
|
i.classList.add("item-lista");
|
||||||
|
|||||||
Reference in New Issue
Block a user