jquery while do code example
Example 1: do while loop in javascript
do {
text += "The number is " + i;
i++;
}
while (i < 10);
Example 2: javascript while loop
while (i < 10) {
text += "The number is " + i;
i++;
}
do {
text += "The number is " + i;
i++;
}
while (i < 10);
while (i < 10) {
text += "The number is " + i;
i++;
}