Joined: Wed Apr 15, 2009 7:18 am Posts: 32 Has thanked: 0 time Have thanks: 0 time
Even easier to use than the for loop is the while loop. A while loop doesn't initialize or increment any fields automatically as part of the command, it just tests a condition and executes the loop for as long as the condition remains true. simple ex: var x = 0; while (x<10) { document.write(x); x++; }