Categories
Javascript

For Loop in javascript

How to use a for loop in javascipt Hi Guys, in this tutorial i will let you now how to use a for loop in javascript.This if very helpful in web application development. Code:- <html> <body> <script type="text/javascript"> var i=0; for (i=1;i<=10;i++) { document.write("Number " + i); document.write("<br />"); } </script> </body> </html>