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, 4:05 AM EDT
Saroj Kumar Sahu thank you
Saroj Kumar SahuPosted May 4, 2015, 2:01 AM EDT
nice one