js dynamic variable name in loop 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";
}