Q:

do while loop in javascript

do {
  text += "The number is " + i;
  i++;
}
while (i < 10);
1
while (i < 10) {
  text += "The number is " + i;
  i++;
}
8
while(condition) {
  //whatever
}
4

while (i < 10) {

    text += "The number is " + i;

    i++;
}

  
-1

New to Communities?

Join the community