Skip to content

Instantly share code, notes, and snippets.

@hebertcisco
Created May 23, 2020 05:23
Show Gist options
  • Save hebertcisco/a2fbdd273edacc33eba8323eeaa37c47 to your computer and use it in GitHub Desktop.
Save hebertcisco/a2fbdd273edacc33eba8323eeaa37c47 to your computer and use it in GitHub Desktop.
The do while statement creates a loop that executes a statement until the condition test is false. The condition is evaluated after the code block is executed, resulting in a declaration being executed at least once.
const mySkills = [
"C#",
"JavaScript",
"TypeScript",
"HTML",
"CSS3",
"Angular",
"ReactJS",
"React Native",
"NodeJs",
"MongoDB",
"Python",
"C",
];
let index: number = 0;
do {
console.log(`${index + 1}. ${mySkills[index]}`);
index++;
} while (index < mySkills.length);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment