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.
1 While loop checks for the condition first. so it may not even enter into the loop, if the condition is false. 2  do while loop, execute the statements in the loop first before checks for the condition. 3  At least one iteration takes places, even if the condition is false. Programming (Turb C++ Compiler) Loops-for loop, while loop and do while loop. The main difference between for loop, while loop, and do while loop is.