ejercicio 5
This commit is contained in:
@@ -30,3 +30,36 @@ function destacarImportantes() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function agregarComidasLitoral() {
|
||||
|
||||
const contenedor = document.createElement("div");
|
||||
|
||||
const titulo = document.createElement("h2");
|
||||
titulo.textContent = "Comidas típicas del litoral";
|
||||
|
||||
const parrafo = document.createElement("p");
|
||||
parrafo.textContent = "Comidas tradicionales de la región";
|
||||
|
||||
const lista = document.createElement("ul");
|
||||
|
||||
const comidas = [
|
||||
"Chipá",
|
||||
"Surubí",
|
||||
"Pacú",
|
||||
"Empanadas de pescado",
|
||||
"Mbejú"
|
||||
];
|
||||
|
||||
for (const comida of comidas) {
|
||||
const item = document.createElement("li");
|
||||
item.textContent = comida;
|
||||
lista.appendChild(item);
|
||||
}
|
||||
|
||||
contenedor.appendChild(titulo);
|
||||
contenedor.appendChild(parrafo);
|
||||
contenedor.appendChild(lista);
|
||||
|
||||
document.body.appendChild(contenedor);
|
||||
}
|
||||
Reference in New Issue
Block a user