Iteration in JavaScript

A lesson for the beginners – how to use iteration in Javascript

<html>
<body>
<script>
   <!–
           b=1      
           while (b>6){
                b= document.write(b);b+1;
           }
           document.write(b,”<br>”);
      –>
</script>
</body>
</html>