I was looking though the CivClicker game code and I found that he created variables with little "sub variables" inside it. It doesn't look like an array to me.
An example of the variable initialization:
// Initialise Data
var food = {
name:'food',
total:0,
increment:1,
specialchance:0.1
},
wood = {
name:'wood',
total:0,
increment:1,
specialchance:0.1
},
stone = {
name:'stone',
total:0,
increment:1,
specialchance:0.1
},
skins = {
name:'skins',
total:0,
},
He later calls the variables using:
food.total++;
And so on. If anyone has any information on this type of variable then I will be very greatful :)