Created
September 30, 2019 00:09
-
-
Save parzibyte/67c07a89c455955bc7faa08dfe00c9ef to your computer and use it in GitHub Desktop.
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
/** | |
* Ejemplos y explicación de Array Map | |
* en JavaScript | |
* | |
* https://parzibyte.me/blog | |
* | |
*/ | |
const numeros = [25, 100, 81]; | |
const raicesCuadradas = numeros.map(Math.sqrt); | |
console.log(raicesCuadradas); | |
/* | |
Salida: | |
[ 5, 10, 9 ] | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment