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
This is how you should do it
var i = 0; setTimeout(function() { s.innerHTML = s.innerHTML + i.toString(); i++; },2000);