I have this arrangement and I need to add all the values of maracadores [i] [1] on the one hand and all of the [i] [2] on the other . And what I propose only adds the element where the for is 2 times, then at the end x only adds me 16.75 + 16.75
var marcadores = [
['x',19.04, -98.20],
['x', 25.54, -103.40],
['x', 20.65, -103.349],
['x',16.75,-93.129]
];
for (var i = 0; i < marcadores.length; i++) {
x = marcadores[i][1]+ marcadores[i][1];
$('#placeholder').html(x);
// o algo así?
}