From 3ebb9d426ac4af3099a290797b52289feef63fc5 Mon Sep 17 00:00:00 2001 From: Naila Setticasi <47135546@terciariourquiza.edu.ar> Date: Thu, 7 May 2026 17:00:55 -0300 Subject: [PATCH 1/6] Finalice el ejercicio 1 --- ejercicios.js | 3 ++- index.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ejercicios.js b/ejercicios.js index c12f2d1..9d32b97 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -9,7 +9,8 @@ console.log("Archivo vinculado correctamente."); */ const numeros = [1, 2, 3, 4, 5, 6, 7, 8]; // Resultado esperado: [4, 16, 36, 64] - +const resultado = numeros.filter(n => n % 2 === 0).map(n => n ** 2); +console.log(resultado) diff --git a/index.html b/index.html index b44ebd0..e7cb935 100644 --- a/index.html +++ b/index.html @@ -10,6 +10,6 @@
Vincular el archivo ejercicios.js a este archivo. Luego, resolver ahí los ejercicios.
- +