js-15.htm - Loop and Break
Please look at the source and developer console.