I\'m trying to add a property to each object in the array:
var capitals = [{ country: \"What\'s the capital of Ecuador?\", choices: [\"Quito\", \"Caracas
You have to use forEach at this context,
capitals.forEach(function(itm){ itm.global = true; });
If you are not familiar with the usage of forEach, then you can do the same job by using a for loop.
forEach
for(var i=0,len=capitals.length;i