Posts about the client side scripting language JavaScript.

For Loop Debugging In JavaScript

3rd January 2008 - 5 minutes read time

The for loop in JavaScript can be used to iterate through all items in an array or properties of an object. This makes looping through any object or array very easy. As in the following example that printing out all items in an array.