Skip to content

Instantly share code, notes, and snippets.

@Elshaman
Created October 5, 2021 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Elshaman/9bc58452387a3eb478a09f6f3cb119c8 to your computer and use it in GitHub Desktop.
Save Elshaman/9bc58452387a3eb478a09f6f3cb119c8 to your computer and use it in GitHub Desktop.
Modern Javascript looping through content: for .. of loop
const juegos = ['Assasins Creed ', 'GTA', 'Streets of Rage', 'AOE', 'BattleField'];
export default juegos;
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