<html>
<body>
<script type="text/javascript">
i = 0;
while (i <= 5) {
document.write("The number is " + i);
document.write("<br />");
i++;
}
</script>
</body>
</html>in this code is while statement using java script.
