Google News
logo
TypeScript - Interview Questions
Explain Loops in Typescript
A loop statement allows to repeat the execution of a statement or a series of statements. To handle looping requirements, TypeScript provides a variety of loops.
 
* For Loop : The for loop is a definite loop implementation. A definite loop is defined as a loop with a fixed number of iterations.
 
* While Loop : When the condition supplied evaluates to true, the while loop executes the instructions.
 
* Do..While Loop : The do...while loop is identical to the while loop, except that the condition isn't evaluated the first time the loop runs.
Advertisement