<html><body>
<script>
//while loop
document.write ("<div>");
var i = 1;
while (i <= 140){
document.write (i + " ");
++i;
}
document.write ("</div><div style='margin-top:10px;color:red;'>");
//for loop
for (let i = 100; i >= 0; --i)
{
document.write (i + " ");
}
document.write ("</div><div style='margin-top:10px;color:blue;'>");
//do-while loop
var j = 1;
do {
document.write ("The number is " + j + "<br>");
++j;
}
while (j < 10);
document.write ("</div>");
</script>
</body></html>