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 loop will always execute at least once because the condition check is at the end of the do loop. The loop continues until the condition is false. do { .... .... â¦ } while(a1); A while loops checks the condition first and will not execute if the condition is false. while (a1) { ....