Skip to content

Instantly share code, notes, and snippets.

@scriptkkiddie
Created August 21, 2022 04:41
Show Gist options
  • Save scriptkkiddie/79915c67d5b6ca50b8f9ea3293719e0e to your computer and use it in GitHub Desktop.
Save scriptkkiddie/79915c67d5b6ca50b8f9ea3293719e0e to your computer and use it in GitHub Desktop.
Iterate Elements from an Array in JavaScript
let ceoOfMNCs = ["Elon Musk", "Tim Cook", "Sundar Pichai", "Satya Nadella"];
for (let ceo of ceoOfMNCs){
  console.log(ceo);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment