Repeating tasks in a script is the most important part when programming. This process is done using a specific statement: the loop. In JavaScript, you can use
while
, for (..)
, for (.. in ..)
, for (.. of ..)
.while
, for (..)
, for (.. in ..)
, for (.. of ..)
.