From 689e61dfeac21cd5de11823cfd7813ab9d2d1f50 Mon Sep 17 00:00:00 2001 From: Gonzalo <43428577@terciariourquiza.edu.ar> Date: Sat, 23 May 2026 13:08:30 -0300 Subject: [PATCH] Ejercicio 6 --- ejercicios.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ejercicios.js b/ejercicios.js index c70fd1b..39baa1b 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -72,4 +72,13 @@ if (usuario2) { console.log(usuario2); } else { console.log("Usuario no encontrado"); -} \ No newline at end of file +} + +//Ejercicio 6 +const palabras = ["sol", "tormenta", "mar", "lluvia", "río", "arcoíris"]; + +const palabrasFiltradas = palabras + .filter(palabra => palabra.length > 4) + .map(palabra => palabra.toUpperCase()); + +console.log(palabrasFiltradas); \ No newline at end of file