Skip to content

Instantly share code, notes, and snippets.

@hebertcisco
Created May 23, 2020 05:29
Show Gist options
  • Save hebertcisco/69c3c949a2bc98b9531e98bff08c2b11 to your computer and use it in GitHub Desktop.
Save hebertcisco/69c3c949a2bc98b9531e98bff08c2b11 to your computer and use it in GitHub Desktop.
One declaration for each in repeating a specified variable over all values ​​of the object's properties. For each distinct property, a specific declaration is executed.
const mySkills = [
"C#",
"JavaScript",
"TypeScript",
"HTML",
"CSS3",
"Angular",
"ReactJS",
"React Native",
"NodeJs",
"MongoDB",
"Python",
"C",
];
mySkills.forEach((value, index) => {
console.log(`${index + 1}. ${value}`);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment