I saw an answer about the correct usage of setInterval()
function. It was said that
(function(){
// do some stuff
setTimeout(arguments.callee, 60000);
})();
guarantees the next call from setTimeout isn't made before the previous has ended. Why using self-invoking functions makes this happen?