setInterval
setInterval(() => console.log('Hi'), 1000);
undefined
It returns a unique id. This id can be used to clear that interval with the clearInterval() function.
clearInterval()