Skip to content

Instantly share code, notes, and snippets.

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