setinterval jquery

JavaScript
 setTimeout(function(){ alert("Hello"); }, 3000);
 setInterval(function(){ 
	console.log("Oooo Yeaaa!");
}, 2000);//run this thang every 2 secondsfunction 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() {
  //Your code
}, 1000); //Every 1000ms = 1sec
Source

Also in JavaScript: