interval javascript

JavaScript
setInterval(function(){ 
	console.log("Oooo Yeaaa!");
}, 2000);//run this thang every 2 secondssetTimeout(function(){
 	console.log("hello");
}, 3000); //wait for atleast  3 seconds before console loggingfunction func(){
  console.log("Ran")
}
setInterval(func,1000)//Runs the "func" function every secondsetInterval(function(){ 
	console.log("print this once every 3 second");
}, 3000);//run this thang every 3 secondssetInterval(function(){
  console.log("Hello");
  console.log("World");
}, 2000); //repeat every 2s
Source

Also in JavaScript: