The while Statement : While : Language Basics JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Language Basics » While »

 

The while Statement



<HTML>
<HEAD>
<TITLE>Using the While Statement</TITLE>
</HEAD>
<BODY>
<SCRIPT><!--
i=1
while(i<7){
 document.write("<H"+i+">This is a level "+i+" heading." +"</H"+i+">")
 ++i
}
// --></SCRIPT>
</BODY>
</HTML>

           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Language Basics
» While