Created
August 16, 2018 11:48
-
-
Save CodHeK/4923af0ad1db530bbb39840e9f19b96c to your computer and use it in GitHub Desktop.
for-of loops
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
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