can there be a do while loop inside a do while loop code example
Example 1: while loop
var i=1;
while(i<=10){
document.write(i + "<br>");
i++;}
Example 2: while loop
while (condition is true) {
code to be executed;
}
var i=1;
while(i<=10){
document.write(i + "<br>");
i++;}
while (condition is true) {
code to be executed;
}