This is an example:
function func1()
{
setTimeout(function(){doSomething();}, 3000);
}
for(i=0;i<10;i++)
{
func1();
}
after executing it , the delay happens only in the first loop, but it didn't happen in the rest of the loops in that 'for' expression.
I want to make the delay happen in all of the loop and not only in the first time.
What's wrong in my code ?