JavaScript for loop using setTimeout to pass argument

Reply to comment

Thanks !! helped a lot