Skip to content

Instantly share code, notes, and snippets.

@hebertcisco
Created May 23, 2020 05:28
Show Gist options
  • Save hebertcisco/aaa3b7098642a3f6a7ccd22ca1d33121 to your computer and use it in GitHub Desktop.
Save hebertcisco/aaa3b7098642a3f6a7ccd22ca1d33121 to your computer and use it in GitHub Desktop.
loop for of loops through iterative objects (including Array, Map, Set, the arguments object and so on), calling a custom function with instructions to be executed for the value of each distinct object.
const mySkills = [
"C#",
"JavaScript",
"TypeScript",
"HTML",
"CSS3",
"Angular",
"ReactJS",
"React Native",
"NodeJs",
"MongoDB",
"Python",
"C",
];
for (let item of mySkills) {
console.log(item)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment