For, While, and Do...While Loops in JavaScript | kirupa.com

by kirupa | 4 March 2014

When you are coding something, there will be times when you want to repeat an action or run some code multiple times. For example, let's say we have a function called saySomething that we want to repeatedly call 10 times.


This is a companion discussion topic for the original entry at http://www.kirupa.com/html5/loops_in_javascript.htm?embed_url=http://www.kirupa.com/html5/loops_in_javascript.htm