From c78276f5dc243583bd67d58a7a147e879ef59397 Mon Sep 17 00:00:00 2001 From: unknown <28407382@terciariourquiza.edu.ar> Date: Sat, 23 May 2026 20:25:43 -0300 Subject: [PATCH 1/7] vinculacion JS en HTML --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index b1c7d4f..c9b428e 100644 --- a/index.html +++ b/index.html @@ -12,4 +12,5 @@ + -- 2.49.1 From dfbdaad11e708d4a392b12f356e10279c556ebcf Mon Sep 17 00:00:00 2001 From: unknown <28407382@terciariourquiza.edu.ar> Date: Sat, 23 May 2026 23:29:06 -0300 Subject: [PATCH 2/7] Ejercicio 2 verificacion de edad --- ejercicios.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ejercicios.js b/ejercicios.js index 8e69ac3..a5d9efa 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -3,3 +3,13 @@ console.log("Archivo vinculado exitosamente"); // Resolver acá los ejercicios propuestos. +let nombre = "Juan"; +let edad = 25; +function verificacion() { + if (edad < 18) { + console.log(`${nombre} es menor de edad`); + } else { + console.log(`${nombre} es mayor de edad`); + } +} +verificacion(); \ No newline at end of file -- 2.49.1 From b63299f8e69d2038aff0037608e320b3d5af6c4a Mon Sep 17 00:00:00 2001 From: unknown <28407382@terciariourquiza.edu.ar> Date: Sat, 23 May 2026 23:57:19 -0300 Subject: [PATCH 3/7] Ejercicio 3 verificacion de edad con mas detalle reciclando variables --- ejercicios.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/ejercicios.js b/ejercicios.js index a5d9efa..6d3b0fa 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -3,13 +3,24 @@ console.log("Archivo vinculado exitosamente"); // Resolver acá los ejercicios propuestos. +// ejercicio 2 let nombre = "Juan"; let edad = 25; -function verificacion() { +function verificacion2() { if (edad < 18) { console.log(`${nombre} es menor de edad`); } else { console.log(`${nombre} es mayor de edad`); } } -verificacion(); \ No newline at end of file +verificacion2(); +// ejercicio 3 +function verificacion3() { + if (edad < 13) { + console.log(`${nombre} esta en su infancia`); + } else if (edad < 17) { + console.log(`${nombre} esta en su adolecencia`); + } else { + console.log(`${nombre} esta en su adultez`);} +} +verificacion3() \ No newline at end of file -- 2.49.1 From 0f90cac55dd667b4eab949e3baebcf029e80bcb9 Mon Sep 17 00:00:00 2001 From: unknown <28407382@terciariourquiza.edu.ar> Date: Sun, 24 May 2026 00:53:31 -0300 Subject: [PATCH 4/7] Ejercicio 4 multiplos de 3 finalizando antes de la variable maximo --- ejercicios.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ejercicios.js b/ejercicios.js index 6d3b0fa..779a6b2 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -23,4 +23,11 @@ function verificacion3() { } else { console.log(`${nombre} esta en su adultez`);} } -verificacion3() \ No newline at end of file +verificacion3() +// ejercicio 4 +let maximo = 15 +let multiplo = 3 +function multiplosTres(){ + while (multiplo < maximo) {console.log(multiplo);multiplo += 3;} +} +multiplosTres(); \ No newline at end of file -- 2.49.1 From 6c1b9bb825cf6150ec7531a02ab1874857f80a25 Mon Sep 17 00:00:00 2001 From: federico colome <28407382@terciariourquiza.edu.ar> Date: Sun, 24 May 2026 20:22:10 -0300 Subject: [PATCH 5/7] ejercicio 5 mismo resultado que 4 pero usando un for clasico, reutilizo variables de 4 --- ejercicios.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ejercicios.js b/ejercicios.js index 779a6b2..1ec8c69 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -23,11 +23,15 @@ function verificacion3() { } else { console.log(`${nombre} esta en su adultez`);} } -verificacion3() +verificacion3(); // ejercicio 4 let maximo = 15 let multiplo = 3 function multiplosTres(){ while (multiplo < maximo) {console.log(multiplo);multiplo += 3;} } -multiplosTres(); \ No newline at end of file +multiplosTres(); +// ejercicio 5 +for (let index = 0; index < maximo; index++) { + +} \ No newline at end of file -- 2.49.1 From 5dd778593daa86a98d9ac260c027451e11793d58 Mon Sep 17 00:00:00 2001 From: federico colome <28407382@terciariourquiza.edu.ar> Date: Sun, 24 May 2026 20:59:50 -0300 Subject: [PATCH 6/7] ejercicio 6 uso de for para listar un array --- ejercicios.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ejercicios.js b/ejercicios.js index 1ec8c69..aafdeb6 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -32,6 +32,10 @@ function multiplosTres(){ } multiplosTres(); // ejercicio 5 -for (let index = 0; index < maximo; index++) { - -} \ No newline at end of file +function multiplosClasico() { + for (i = multiplo; i < maximo; i = i + multiplo) {console.log(i)} +} +multiplosClasico(); +// ejercicio 6 +let miHuerto = ["Tomate","Lechuga","Cebolla"]; + for (verduras of miHuerto) {console.log(verduras)}; \ No newline at end of file -- 2.49.1 From fb6b51c7103983846814ec8a892721879d411a4b Mon Sep 17 00:00:00 2001 From: federico colome <28407382@terciariourquiza.edu.ar> Date: Sun, 24 May 2026 21:20:41 -0300 Subject: [PATCH 7/7] ejercicio 7 funcion para devolver un saludo de presentacion --- ejercicios.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ejercicios.js b/ejercicios.js index aafdeb6..dfa1555 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -38,4 +38,9 @@ function multiplosClasico() { multiplosClasico(); // ejercicio 6 let miHuerto = ["Tomate","Lechuga","Cebolla"]; - for (verduras of miHuerto) {console.log(verduras)}; \ No newline at end of file + for (verduras of miHuerto) {console.log(verduras)}; +// ejercicio 7 +function presentarse (nombre1,edad1) { +return `Me llamo ${nombre1} y tengo ${edad1} años.` +}; +console.log(presentarse("Fede","45")); \ No newline at end of file -- 2.49.1