Find great deals on eBay for Woodstock Ticket in Music Memorabilia. Shop with confidence.
Instead of adding several almost equal lines in a script we can use loops to perform a task like this. In JavaScript there are two different kind of loops: for - loops through a block of code a specified number of times. while - loops through a block of code while a specified condition is true.
A do..while loop is almost the same as a while loop except that the loop body is guaranteed to execute at least once. A while loop says Loop while the condition is true, and execute this block of code, a do..while loop says Execute this block of code, and then continue to loop while the condition is true.