Created
December 3, 2019 00:02
-
-
Save Fhernd/88843b6696895268577c778b43898be8 to your computer and use it in GitHub Desktop.
// Ejercicio 187: Invertir todas las cadenas de un arreglo con la función map de Array.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ejercicio 187: Invertir todas las cadenas de un arreglo con la función map de Array. | |
let lenguajes = ['JavaScript', 'C#', 'PHP', 'Java', 'C++']; | |
let resultado = lenguajes.map((valor) => { | |
return valor.split('').reverse().join(''); | |
}); | |
console.log(lenguajes); | |
console.log(resultado); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment