I need to use a for loop to read the values from the arrays contained in an object in order to use these a coordinates X and Y
var murderer_record = {
Loc_X: [
639, 681, 712, 756, 715, 701, 753, 815, 795, 788, 781, 768, 750, 732, 714,
695, 693, 654, 624, 594, 555,
],
Loc_Y: [
288, 286, 293, 310, 368, 425, 436, 468, 506, 497, 486, 489, 500, 506, 514,
531, 552, 523, 500, 484, 474,
],
};
I've been doing:
for(i = 0; i < murderer_record.Loc_X; i++) {}
but that only gives me the values of X and I need to get both values to the input them in a function at the same time
Thanks!