Answers for "js for function every second"

7

javascript call function every second

setInterval(function(){ 
    //this code runs every second 
}, 1000);
Posted by: Guest on August-01-2019
0

js loop every x seconds

(function loop() {
  setTimeout(function () {
    // execute script
    loop()
  }, 9000); //9000 = 9000ms = 9s
}());
Posted by: Guest on November-09-2020

Code answers related to "js for function every second"

Code answers related to "Javascript"

Browse Popular Code Answers by Language