WIP: enlace el archivo .js con el html #25

Draft
valenti.taiel wants to merge 6 commits from valenti.taiel/clase-7-arrays-funciones-objetos:clase7 into main
Showing only changes of commit f7f46c81f8 - Show all commits

View File

@@ -8,6 +8,8 @@ console.log("Archivo vinculado correctamente.");
luego `map` para elevarlos al cuadrado.
*/
const numeros = [1, 2, 3, 4, 5, 6, 7, 8];
const resultado = numeros.filter(n => n % 2 === 0).map(n => n * n);
console.log(resultado);
// Resultado esperado: [4, 16, 36, 64]