From e51a05c537ce9ff0490b7f4141a06b1be428eb93 Mon Sep 17 00:00:00 2001 From: wiLson Date: Sat, 9 May 2026 15:48:58 -0300 Subject: [PATCH] ejercicio 1 --- ejercicios.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ejercicios.js b/ejercicios.js index c12f2d1..ee0936a 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -10,7 +10,7 @@ console.log("Archivo vinculado correctamente."); const numeros = [1, 2, 3, 4, 5, 6, 7, 8]; // Resultado esperado: [4, 16, 36, 64] - +numeros.filter(num => num % 2 === 0).map(num => Math.pow(num, 2)); /*