855 B
855 B
title |
---|
Loops |
Loops are used in JavaScript to perform repeated tasks based on a condition. Conditions typically return true
or false
when analysed. A loop will continue running until the defined condition returns false
.
There are three common types of loops:
You can type js for
, js while
or js do while
to get more info on any of these.
Links: MDN for loop