do while loop in JavaScript
In this video we will discuss do while loop in JavaScript with an example. In Part 16 we discussed while loop. Please watch Part 16 before proceeding. while loop : 1. while loop checks the condition first 2. If the condition is true, statements with in the loop are executed 3. This process is repeated as long as the condition evaluates to true. do while loop : 1. do while loop checks its condition at the end of the loop 2. This means the do...while... loop is guaranteed to execute at least one time. 3. In general, do...while... loops are used to present a menu to the user.