JavaScript for loop using setTimeout to pass argument

Reply to comment

Thx!

It helps!