Loops

They can execute a square of code a few times. Loops are helpful, assuming you need to run a similar code, again and again, each time with an alternate worth.
- For Loop - It circles through a square of code a few times.
- ForEach Loop - It calls a capacity once for every component in a group.
- For/Of Loop - It circles through the upsides of an iterable item.
- For/In-Loop - It circles through the properties of an item.
- While Loop - The while loop circles through a square of code up to a predefined condition are valid.
- Do-While Loop - It is a variation of the while circle. It will execute the code block once, before actually looking at the condition, then, at that point, it will rehash the loop as long as the condition is valid.
0 Comments