Nested do while loop in Javascript
Nested do while loop in Javascript
In this article we are goanna to see about Nested do while loop in Javascript and where we use these. which is most important when you are going to start your career in JavaScript. Please read and enjoy this article if you want to give any feedback about your experience, we welcome.
Do while loop inside the do while loop.
Syntax:
do {
statements;
increment/decrement;
do{
statements;
increment/decrement;
}while(condition);
} while(condition);
Ex:
Var i = 0;
do {
document.write(i + “<br>”);
i++;
var x = 0;
do {
document.write(x + “<br>”)
x++;
}while(x<4);
} while(i<3);
Tags:
JavaScript
0 comments
Please leave your comments...... Thanks