Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created Sep 24, 2019
Embed
What would you like to do?
const canciones = [
"Hang onto yourself",
"Go your own way",
"Modern Love",
];
// Tercer ejemplo recibiendo el arreglo
const funcionQueRecorreConIndiceYArreglo = function(cancion, indice, arreglo) {
console.log("Tenemos la canción %s en el índice %d. El arreglo completo es %s", cancion, indice, arreglo);
}
canciones.forEach(funcionQueRecorreConIndiceYArreglo);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment