js .map assign different variable names code example
Example: dynamic loop variable .each create hash javascript
for (var i = 0; i < coords.length; ++i) {
this["marker"+i] = "some stuff";
}
for (var i = 0; i < coords.length; ++i) {
this["marker"+i] = "some stuff";
}