I was researching some sample code and couldn't understand this line of code
var foo = {};
As far as i could see it is used as a kind of arry where the index is a string entered by the user instead of 0,1,2,... etc. Can explain/confirm this. Cheers!