JavaScript for loop using setTimeout to pass argument

Reply to comment

Thanks man, really helped me!