The do...while Statement
The do-while statement is a post-test loop. The body of the loop is always executed at least once.
Here's the syntax:
do {
statement
} while (expression);
And here's an example of its usage:
<!DOCTYPE html>
<html>
<head>
<title>Example</title>
<script type="text/javascript">
var i = 0;
do {
i += 2;
document.writeln(i);
} while (i < 10);
//2 4 6 8 10
</script>
</head>
<body>
</body>
</html>