Fungsi lulus, bukan string, ke setTimeout () dan setInterval ()

setInterval(doSomethingPeriodically, 1000);  
setTimeout(doSomethingAfterFiveSeconds, 5000);
Creepy Gábor