34,333
edits
Changes
→JavaScript Looping Statements
== JavaScript Looping Statements ==
It is generally common knowledge that computers are great at performing repetitive tasks an infinite number of times, and doing so very quickly. It is also common knowlede knowledge that computers really don't do anything unless someone programs them to tell them what to do. Loop statements are the primary mechanism for telling a computer to perform the same task over and over again until a set of crieria are met. This is where ''for'', ''while'' and ''do ... while'' loops are of use.
=== JavaScript ''for'' loops ===