javascript repeat each second

JavaScript
setInterval(function(){
	// code
}, milliseconds);
Source

Also in JavaScript: