jquery call function every second

JavaScript
setInterval(function(){ 
    //this code runs every second 
}, 1000);

Source

Also in JavaScript: