agregado de filter y map

This commit is contained in:
maximo hidalgo
2026-05-07 22:14:00 -03:00
parent 8b7e397900
commit 9c4883e7ce
2 changed files with 3 additions and 1 deletions

View File

@@ -10,7 +10,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 * n);
console.log(resultado);
/*