Skip to content

Instantly share code, notes, and snippets.

@rishisidhu
Created July 10, 2020 12:30
Show Gist options
  • Save rishisidhu/8271900296cc86f630e1e32f6ea4b727 to your computer and use it in GitHub Desktop.
Save rishisidhu/8271900296cc86f630e1e32f6ea4b727 to your computer and use it in GitHub Desktop.
Modern JS ES6+ features - For-Of Loops
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