JavaScript Closure

Closure inside loop. How to use it.