I am working on a website, where I need to create a pause or delay. So please tell me How to create pause or delay in for loop in javascript or
for
javascript
It is not possible to pause a loop. However you can delay the execution of code fragments with the setTimeout() function. It would not make a lot of sense to pause the entire execution anyway.