Loops are Javascript statements that allow you to process code in a looping fashion. You can also use them to process any custom code repeatedly, or iterate over arrays and object properties. Loops run lightning fast and are extremely useful for information processing and animations. All a programmer has to watch out for when scripting loops is creating never-ending(or extremely large) loops that will exceed the document's processing threshhold.
These are the standard loop mechanisms Javascript comes equipped with:
Below is a very basic example of scripting a loop to process items of an array.