Created
October 5, 2021 18:32
-
-
Save Elshaman/9bc58452387a3eb478a09f6f3cb119c8 to your computer and use it in GitHub Desktop.
Modern Javascript looping through content: for .. of loop
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
const juegos = ['Assasins Creed ', 'GTA', 'Streets of Rage', 'AOE', 'BattleField']; | |
export default juegos; |
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
import juegos from './arreglo.js'; | |
for(const juego of juegos){ | |
console.log(juego); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment