Try it
Javascript
Jquery
Angular
Learn Angular
Learn Javascript
Learn Bootstrap
Learn jQuery
For-1
In this example, We will learn how to use JavaScript for loop, starting the counter from 0 and till less than 10, it will print "I am 0---9" See the code snippet:
<!DOCTYPE html> <html> <head> <title>Welcome to LearnKode - A code learning platform</title> </head> <body> <script> var count; document.write("Starting Loop" + "<br />"); for(count = 0; count < 10; count++){ document.write("I am : " + count ); document.write("<br />"); } document.write("Loop stopped!"); </script> </body> </html>
Output
×
Save This try
Title
Description
In this example, We will learn how to use JavaScript for loop, starting the counter from 0 and till less than 10, it will print "I am 0---9" See the code snippet: