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
var capitals = [{
country: "What's the capital of Ecuador?",
choices: ["Quito", "Caracas", "Panama", "Loja"],
corAnswer: 0
}, {
country: "What is the capital of China?",
choices: ["Shanghai", "Beijing", "Ghangzou", "Hong Kong"],
corAnswer: 0
}];
for(i in capitals) {
capitals[i].global = true;
}
console.log(capitals)