Javascript Loops

Loops

 /*
  Loops are used to perform an action a number of times
  the keword is for
 */
 var i = 0
 for(i=0; i<=10; i++)
 {
  document.write(i + ". Shahid <BR><HR>")
 }
 
      <script type="text/javascript">
/*
Loops are used to perform an action a number of times
the keword is for
*/
var i = 0
for(i=0; i<=10; i++)
{
document.write(i + ". Shahid <BR><HR>")
}

</script>