Edit in JSFiddle

//set the value of 'i' to 0; execute code once and then check the condition, continue if met

var i = 100; 

do{
	document.getElementById("output").innerHTML += "We are on number " + i + "<br />";
  i++
} while(i < 10);
<!-- Easy JavaScript #25 - the do while loop-->
<p>
Welcome to the 25th Easy JavaScript tutorial, part of <a href="http://www.easyprogramming.net" target="_blank">EasyProgramming.net</a>. This tutorial covers the <code>do while</code> loop!
</p>
<p>
The <code>do while</code> loop  allows you to run a block of code as long as a specific condition is true. Unlike the <code>while</code> loop, the <code>do while</code> loop will ALWAYS run at least once before it checks the condition.
</p> 
<h2>
Syntax of the <code>do while</code> loop:
</h2>

<pre>
  do{
    code to be executed - this code is run at least once
  } while (condition is true);
</pre>

<h3>Output:</h3>
<p>
<span id="output"></span>
</p>
<p>
W3Schools: <a href="http://www.w3schools.com/js/js_loop_while.asp" target="_blank">http://www.w3schools.com/js/js_loop_while.asp</a>
</p>