<!DOCTYPE html>
<html lang="en-US">
<body>
<p>The do will execute the code block once, before checking the condition.</p>
<p id="point"></p>
<script>
var x = document.getElementById("point");
var i = 1;
var txt = "";
do{
txt += i;
i++;
}while(i < 0);
x.innerText = txt;
</script> </body>
</html>