how to create dinamic variable names in a 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";
}