For loop in javascript

When we need to do same or semiler work we need to use for loop

Syntex

for (initialization; condition; update){
   //code here
}

Example

for (let i = 0; i < 6; i++){
    console.log("Hello Devpeogrammer");
}

 

In this example we have print "Hello Devprogrammer" 6 times

About Author

Photo

Hi, I am Mahbub Hasan
Software Engineer

I am very much interested to share my programming
and development knowledge with the people.I will try
to update my blog everyday with new technology inshallah.

Thank You

For Visiting My Blog.

Contact Me