What\'s the best way to store a key=>value array in javascript, and how can that be looped through?
key=>value
The key of each element should be a tag, such as
Simply do this
var key = "keyOne"; var obj = {}; obj[key] = someValue;