Answers for "how to set interval used in javascript functioon"

104

javascript setinterval

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

how to do a function after a set interval js

function sayHi() {
  alert('Hello');
}
//Do a function at a set interval continuously
setTimeout(sayHi, 1000);
//Do a function once after a set interval
setTimeout(sayHi,
Posted by: Guest on October-15-2020

Code answers related to "how to set interval used in javascript functioon"

Code answers related to "Javascript"

Browse Popular Code Answers by Language