This is an example:
function func1() { setTimeout(function(){doSomething();}, 3000); } for(i=0;i<10;i++) { func1(); }
after executing
If you want iterate with constant delay, IMHO you better use setInterval:
var loops = 9, intervalId = setInterval(function () { // My super code goes here console.log(loops); loops-- <= 0 && (clearInterval(intervalId)); }, 3000);
I've made a jsfiddle for you.