From dcb3b5a4635e38301b10eca910199d486b271ae7 Mon Sep 17 00:00:00 2001 From: Bruno Date: Tue, 12 May 2026 17:30:46 -0300 Subject: [PATCH 01/13] Resolucion del 1er ejercicio --- ejercicios-clase-8.js | 2 ++ index.html | 3 +++ 2 files changed, 5 insertions(+) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index af39c43..63ef3ac 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -1 +1,3 @@ // Vincular este archivo al archivo index.html, y resolver aquí los ejercicios. +const titulo = document.querySelector("h1"); +titulo.textContent = "Comidas clasicas/tipicas de Argentina"; diff --git a/index.html b/index.html index 0c393ac..657ac68 100644 --- a/index.html +++ b/index.html @@ -31,5 +31,8 @@

¿Y este párrafo? ¿Será importante?

Este es otro párrafo del montón.

+ + + -- 2.49.1 From 3a7937e3494e3ded99be0475844755786114fddd Mon Sep 17 00:00:00 2001 From: Bruno Date: Tue, 12 May 2026 17:42:41 -0300 Subject: [PATCH 02/13] Resolucion de la mitad del 2do ejercicio --- ejercicios-clase-8.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index 63ef3ac..dcb99e3 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -1,3 +1,9 @@ // Vincular este archivo al archivo index.html, y resolver aquí los ejercicios. const titulo = document.querySelector("h1"); -titulo.textContent = "Comidas clasicas/tipicas de Argentina"; +titulo.textContent = "Comidas clásicas/típicas de Argentina"; + +const item = document.querySelectorAll("ul li"); +for (const i of item) { + console.log(i.textContent); +} +item.classList.add("item-lista"); \ No newline at end of file -- 2.49.1 From 862383c36d813208197e848359825c8605507879 Mon Sep 17 00:00:00 2001 From: Bruno Date: Thu, 14 May 2026 21:46:30 -0300 Subject: [PATCH 03/13] Arreglo del primer ejercicio --- ejercicios-clase-8.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index dcb99e3..a40d93a 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -1,9 +1,12 @@ // Vincular este archivo al archivo index.html, y resolver aquí los ejercicios. const titulo = document.querySelector("h1"); +function cambiarTitulo(titulo) { titulo.textContent = "Comidas clásicas/típicas de Argentina"; +return(titulo) +} const item = document.querySelectorAll("ul li"); for (const i of item) { console.log(i.textContent); } -item.classList.add("item-lista"); \ No newline at end of file +item.classList.push("item-lista"); \ No newline at end of file -- 2.49.1 From b612de3f16a62817632c7175484e0349c663bbf6 Mon Sep 17 00:00:00 2001 From: Bruno Date: Thu, 14 May 2026 22:30:48 -0300 Subject: [PATCH 04/13] Resolucion del 2do ejercicio --- ejercicios-clase-8.js | 8 +++++++- estilo.css | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index a40d93a..5009444 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -9,4 +9,10 @@ const item = document.querySelectorAll("ul li"); for (const i of item) { console.log(i.textContent); } -item.classList.push("item-lista"); \ No newline at end of file + +function agregarItem() { + const item = document.querySelectorAll("ul li"); + for (const i of item) { + i.classList.add("item-lista"); + } +} diff --git a/estilo.css b/estilo.css index fcb26fc..c4f3fd7 100644 --- a/estilo.css +++ b/estilo.css @@ -176,3 +176,7 @@ h1 { padding: 20px; } } + +.item-lista { + color: red; +} \ No newline at end of file -- 2.49.1 From e5b05481b1525e30b100078899447d4d9d786925 Mon Sep 17 00:00:00 2001 From: Bruno Date: Thu, 14 May 2026 22:32:32 -0300 Subject: [PATCH 05/13] Cambie el nombre de la funcion del 2do ejercicio --- ejercicios-clase-8.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index 5009444..4538876 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -10,7 +10,7 @@ for (const i of item) { console.log(i.textContent); } -function agregarItem() { +function itemLista() { const item = document.querySelectorAll("ul li"); for (const i of item) { i.classList.add("item-lista"); -- 2.49.1 From 8366bbb7d62372b2280fa558004874af101fa1b4 Mon Sep 17 00:00:00 2001 From: Bruno Date: Thu, 14 May 2026 22:57:52 -0300 Subject: [PATCH 06/13] Avance del tercer ejercicio --- ejercicios-clase-8.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index 4538876..0cd2f95 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -10,9 +10,20 @@ for (const i of item) { console.log(i.textContent); } + function itemLista() { const item = document.querySelectorAll("ul li"); for (const i of item) { i.classList.add("item-lista"); } } + + + +function agregarItem() { + const listaInicial = document.querySelector("#lista-inicial"); + for (const l of listaInicial) { + const nuevoElemento = document.createElement("li"); + } + return(nuevoElemento) +} \ No newline at end of file -- 2.49.1 From 66ef232929cc4d6e2eb84a72633713a7ca00a866 Mon Sep 17 00:00:00 2001 From: Bruno Date: Sat, 16 May 2026 17:57:44 -0300 Subject: [PATCH 07/13] Resolucion del 3er ejercicio --- ejercicios-clase-8.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index 0cd2f95..66d7406 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -1,10 +1,12 @@ // Vincular este archivo al archivo index.html, y resolver aquí los ejercicios. +//ejercicio 1 const titulo = document.querySelector("h1"); function cambiarTitulo(titulo) { titulo.textContent = "Comidas clásicas/típicas de Argentina"; return(titulo) } +//ejercicio 2 const item = document.querySelectorAll("ul li"); for (const i of item) { console.log(i.textContent); @@ -18,12 +20,11 @@ function itemLista() { } } +//ejercicio 3 +const lista = document.querySelector("#lista-inicial"); - -function agregarItem() { - const listaInicial = document.querySelector("#lista-inicial"); - for (const l of listaInicial) { - const nuevoElemento = document.createElement("li"); - } - return(nuevoElemento) +function agregarItem(texto) { + const nuevoElemento = document.createElement("li"); + nuevoElemento.textContent = texto; + lista.appendChild(nuevoElemento); } \ No newline at end of file -- 2.49.1 From 898d4ccdbe5a02aada3bf05082ff282b333e804f Mon Sep 17 00:00:00 2001 From: Bruno Date: Sat, 16 May 2026 18:36:38 -0300 Subject: [PATCH 08/13] Resolucion del 4to ejercicio --- ejercicios-clase-8.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index 66d7406..aa5cd20 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -27,4 +27,12 @@ function agregarItem(texto) { const nuevoElemento = document.createElement("li"); nuevoElemento.textContent = texto; lista.appendChild(nuevoElemento); -} \ No newline at end of file +} + +//ejercicio 4 +const parrafos = document.querySelectorAll("#parrafos p"); +parrafos.forEach(p => { + if (p.textContent.includes("importante")) { + p.classList.add("destacado"); + } +}); -- 2.49.1 From bd699429c8a70c927f0ee810b734fef2891d8d47 Mon Sep 17 00:00:00 2001 From: Bruno Date: Sat, 16 May 2026 19:31:25 -0300 Subject: [PATCH 09/13] Resolucion de la mitad el 5to ejercicio --- ejercicios-clase-8.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index aa5cd20..c7fa0af 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -36,3 +36,21 @@ parrafos.forEach(p => { p.classList.add("destacado"); } }); + +//ejercicio 5; +function nuevoDiv() { + const div = document.createElement("div") + const h2 = document.createElement("h2"); + h2.textContent = "Comidas tipicas de la region del litoral"; + div.appendChild(h2); + const p = document.createElement("p"); + p.textContent = "Algunas de las comidas mas tipicas del litoral pueden ser: "; + div.appendChild(p); + const listaLitoral = document.createElement("ul"); + const item1 = document.createElement("li"); + item1.textContent = "Mbejú"; + listaLitoral.appendChild(item1); + const item2 = + listaLitoral.textContent = ["Mbejú, Chipa guazu, Sopa paraguaya, Vori Vori"] + div.appendChild(listaLitoral); +} \ No newline at end of file -- 2.49.1 From ee728fe8eba96653db5a5679ca69e0a1239a55e4 Mon Sep 17 00:00:00 2001 From: Bruno Date: Tue, 19 May 2026 14:30:20 -0300 Subject: [PATCH 10/13] Resolucion del 5to ejercicio --- ejercicios-clase-8.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index c7fa0af..d98c2c9 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -50,7 +50,15 @@ function nuevoDiv() { const item1 = document.createElement("li"); item1.textContent = "Mbejú"; listaLitoral.appendChild(item1); - const item2 = - listaLitoral.textContent = ["Mbejú, Chipa guazu, Sopa paraguaya, Vori Vori"] + const item2 = document.createElement("li"); + item2.textContent = "Chipa guazu"; + listaLitoral.appendChild(item2); + const item3 = document.createElement("li"); + item3.textContent = "Sopa paraguaya"; + listaLitoral.appendChild(item3); + const item4 = document.createElement("li"); + item4.textContent = "Vori vori"; + listaLitoral.appendChild(item4) div.appendChild(listaLitoral); + document.body.appendChild(div); } \ No newline at end of file -- 2.49.1 From 464c3bf1d27c4723ac57546bd5824be5fd8d74ce Mon Sep 17 00:00:00 2001 From: Bruno Date: Tue, 19 May 2026 15:31:12 -0300 Subject: [PATCH 11/13] Resolucion de 6to ejercicio --- ejercicios-clase-8.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index d98c2c9..3d69d91 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -60,5 +60,14 @@ function nuevoDiv() { item4.textContent = "Vori vori"; listaLitoral.appendChild(item4) div.appendChild(listaLitoral); + listaLitoral.id = "listaLitoral" document.body.appendChild(div); +} + +//ejercicio 6 +function limpiarLista(idLista) { + const listaALimpiar = document.querySelectorAll(`#${idLista} li`); + for (const i of listaALimpiar) { + i.remove(); + } } \ No newline at end of file -- 2.49.1 From 31030688a4964b1aaefb3f828032a4a242bf1c16 Mon Sep 17 00:00:00 2001 From: Bruno Date: Tue, 19 May 2026 15:36:56 -0300 Subject: [PATCH 12/13] Resolucion del 7mo ejercicio --- ejercicios-clase-8.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index 3d69d91..9f7716d 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -70,4 +70,10 @@ function limpiarLista(idLista) { for (const i of listaALimpiar) { i.remove(); } -} \ No newline at end of file +} + +//ejercicio 7 +const imagen = document.querySelector("#foto"); +imagen.setAttribute("src", "foto2.jpg"); +imagen.setAttribute("alt", "Locro"); +console.log(imagen.getAttribute("alt")); \ No newline at end of file -- 2.49.1 From 4ea3de29e5dc5713798cf358279f47353e777e5e Mon Sep 17 00:00:00 2001 From: Bruno Date: Tue, 19 May 2026 17:47:11 -0300 Subject: [PATCH 13/13] Resolucion del 8tavo ejercicio --- ejercicios-clase-8.js | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index 9f7716d..9f2d6da 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -76,4 +76,21 @@ function limpiarLista(idLista) { const imagen = document.querySelector("#foto"); imagen.setAttribute("src", "foto2.jpg"); imagen.setAttribute("alt", "Locro"); -console.log(imagen.getAttribute("alt")); \ No newline at end of file +console.log(imagen.getAttribute("alt")); + +//ejercicio 8 +function construirLista(arr) { + const div = document.createElement("div"); + div.classList.add("grupo-comidas"); + const titulo = document.createElement("h2"); + titulo.textContent = arr[0]; + div.appendChild(titulo); + const lista = document.createElement("ul"); + for (let i = 1; i < arr.length; i ++) { + const item = document.createElement("li"); + item.textContent = arr[i]; + lista.appendChild(item); + } + div.appendChild(lista); + return div; +} \ No newline at end of file -- 2.49.1