Roadmap to becoming a developer in 2022
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Chloe Wray 3272ccb58e
Add content to for...in statement (#2510)
2 years ago
..
102-break-continue added content to - prototypal inheritance, implicti type casting, keyed collections, structured data, break continue, labeled statements, comparison operators, string operators, conditional operators (#2032) 2 years ago
100-for-in-statement.md Add content to for...in statement (#2510) 2 years ago
101-for-of-statement.md Update 101-for-of-statement.md (#1738) 2 years ago
103-for-statement.md Adding Arithmetic & Bitwise operators - JS roadmap (#1878) 2 years ago
104-do-while-statement.md Add do...while statement in JavaScript roadmap (#1820) 2 years ago
105-while-statement.md Add while statement in JavaScript roadmap (#1819) 2 years ago
readme.md Add JavaScript loops and iterations resources (#1604) 2 years ago

readme.md

Loops and Iterations

Loops offer a quick and easy way to do something repeatedly.

You can think of a loop as a computerized version of the game where you tell someone to take X steps in one direction, then Y steps in another. For example, the idea "Go five steps to the east" could be expressed this way as a loop:

for (let step = 0; step < 5; step++) {
  // Runs 5 times, with values of step 0 through 4.
  console.log('Walking east one step');
}

Free Content Loops and iteration