var data = markers_?[i];
function foo() {
var index = 2;
var markers_1 = [13];
var markers_2 = [666];
var evil = eval(`markers_${index}`);
console.log(evil);
}
foo();
function foo() {
var index = 2;
var markers = {
1: [42],
2: [777],
};
var good = markers[index];
console.log(good);
}
foo();