Created
May 23, 2020 05:23
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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