JS execute a função EVRY Segundo

function everyTime() {
    console.log('each 1 second...');
}

//set execution every x ms
var myInterval = setInterval(everyTime, 1000);

//unset execution every x ms
clearInterval(myInterval);
mattia896