Skip to content

Instantly share code, notes, and snippets.

@CodHeK
Created August 16, 2018 11:48
Show Gist options
  • Save CodHeK/4923af0ad1db530bbb39840e9f19b96c to your computer and use it in GitHub Desktop.
Save CodHeK/4923af0ad1db530bbb39840e9f19b96c to your computer and use it in GitHub Desktop.
for-of loops
let nums = [1, 2, 3, 4, 5]
for(let num of nums) {
console.log(num)
}
//prints 1 2 3 4 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment