A While Loop That Decrements from 10 to 1 : While : Language Basics JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Language Basics » While »

 

A While Loop That Decrements from 10 to 1



<HTML>
<BODY>
<H1>
<SCRIPT
      var counter = 10
      while (counter > 0
      
         document.write (counter + "<br>")
         counter--; 
      
   </SCRIPT>
</H1>
</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