For Loops

For loops are the same as in JavaScript:

for (var i = 0; i < 10; i++) {
  print(i);
}

/* =>  
0
1
2
3
...
*/

There are also for-in loops, which can be used by Maps and Lists and anyhting else that implements Iterable

List fruitList = ['apple', 'orange', 'banana'];
for (var fruit in fruitList) {
  print(fruit);
}

/* =>
apple
orange
banana
 */