Created
July 10, 2020 12:30
-
-
Save rishisidhu/8271900296cc86f630e1e32f6ea4b727 to your computer and use it in GitHub Desktop.
Modern JS ES6+ features - 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 details = [11, 13, 17, "Prime Numbers"]; | |
//Looping through array | |
for (const detail of details) { | |
console.log(detail); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment