Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Loops

Loops let us execute a block of code repeatedly. They are useful for tasks that require repetitive actions such as going through an array or performing an action multiple times.

In this part you will learn about:

  • While loops
  • For loops
  • For...in loops
  • For...of loops