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.
Repeats a statement or group of statements while a given condition is true. It tests the condition before executing the loop body. 2: for loop. Execute a sequence of statements multiple times and abbreviates the code that manages the loop variable. 3: do...while loop. Like a while statement, except that it tests the condition at the end of the loop body.