Created
September 24, 2019 15:28
-
-
Save parzibyte/34a6933267cf81f0f87d9cd0ce5197c4 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
// https://parzibyte.me/blog | |
const canciones = [ | |
"Hang onto yourself", | |
"Go your own way", | |
"Modern Love", | |
]; | |
// Sexto ejemplo, función flecha anónima | |
canciones.forEach(cancion => { | |
console.log("Canción dentro de función flecha anónima: ", cancion); | |
}); | |
// Séptimo ejemplo, función flecha anónima de una línea | |
canciones.forEach(cancion => console.log("Canción dentro de función flecha simplificada y anónima: ", cancion)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment