Skip to content

Instantly share code, notes, and snippets.

@ludovicwyffels
Created May 28, 2018 11:23
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 ludovicwyffels/08f004fa908886e9ce25380956b5185e to your computer and use it in GitHub Desktop.
Save ludovicwyffels/08f004fa908886e9ce25380956b5185e to your computer and use it in GitHub Desktop.
const arr = [2,4,5,6,8,9];
for(let num of arr) {
console.log(num);
}
const str = 'JavaScript';
for(let letter of str) {
console.log(letter);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment