Just simple! Here i am just looping the number "i" from 0 to 5.
forloop_JS,html
<html> <body> <script type="text/javascript"> for (i = 0; i <= 5; i++) { document.write("The number is " + i); document.write("<br />"); } </script> <h1> loop is i=0;i<=5;i++ </h1> </body> </html>
No comments:
Post a Comment
Saalram.com