Using the do…while loop in JavaScript
If you want a group of statements to be executed at least once, you can use the do..while loop. This is because the condition of the do..while loop is placed at the end of the loop.
Demo
Let’s create a document called “doWhileLoop.html.



Aarthna MaheshwariPosted May 4, 2015, 8:05 AM
Saroj Kumar Sahu thank you
Saroj Kumar SahuPosted May 4, 2015, 6:01 AM
nice one