Why do nested for loops work in the way that they do in the following example:
for loops
var times = [ [\"04/11/10\", \"86kg\"],
Do this:
var newTimes = []; for (var i = 0; i < times.length; i++) { for(var x = 0; x < times[i].length; x++) { newTimes.push(times[i][x]); console.log(newTimes); } }
You are re-initializing newTimes each time through the loop.