UX Design and Development course

The DO loop

Much like the WHILE loop, but ensures that at least one condition is run before the condition is tested.

var i = 10;

do {
  console.log(i);
  i+=10;
} while (i <= 50);

Play with code

JS Bin