Answers for "loop every 5 seconds"

0

loop every 5 seconds

for(var i = 0; i < 3; i++) {
    (function(index) {
        setTimeout(function() { alert(index); }, index*5000);
    })(i);
}
Posted by: Guest on May-07-2020

Code answers related to "loop every 5 seconds"

Code answers related to "Javascript"

Browse Popular Code Answers by Language