Loop in while : While « Language Basics « JavaScript DHTML






Loop in while

  
<HTML>

<HEAD>

<SCRIPT language="JavaScript">
<!-- 
count=1;
while(count<16)
{
 document.write(count+". Repetitive.<BR>");
 count+=1;
}

//-->
</SCRIPT>
</HEAD>
<BODY>
</BODY>

</HTML>
 

           
         
    
  








Related examples in the same category

1. A While Loop That Decrements from 10 to 1
2.Using a Do/While Loop to Reverse a Text String
3.While loop
4.Do while loop
5.Using the while Loop in JavaScript
6.The do..while Statement Ensures at Least One Iteration
7.The while Statement
8.While loop test
9.Check the loop counter for while loop
10.Do ... while loop and output calculation result