Answers for "js update setinterval time"

145

javascript setinterval

setInterval(function(){ 
	console.log("Oooo Yeaaa!");
}, 2000);//run this thang every 2 seconds
Posted by: Guest on June-27-2019
0

js setinterval run immediately

function foo() {
   // do stuff
   // ...

   // and schedule a repeat
   setTimeout(foo, delay);
}

// start the cycle
foo();
Posted by: Guest on February-07-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language