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++; }
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum