JavaScript for loop using setTimeout to pass argument

Reply to comment

That saved me a few hairs! Nice one