Learning Loops in JavaScript
This page shows how different types of loops work.