Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>For Example JavaScript</title>
- <script>
- var i=0;
- for(i=0; i<5; i++) {
- document.writeln("The number is : " + i);
- document.writeln("<br>");
- }
- document.writeln("<br>");
- while (i<=5) {
- document.write("The number is : " + i);
- document.write("<br>");
- i++;
- }
- </script>
- </head>
- <body>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement