Best way to store a key=>value array in Javascript?
<p>What's the best way to store a key=>value array in javascript, and how can that be looped through?</p>

<p>The key of each element should be a tag, such as <code>{id}</code> or just <code>id</code> and the value should be the numerical value of the id.</p>

<p>It should either be the element of an existing javascript class, or be a global variable which could easily be referenced through the class.</p>

<p>Jquery can be used</p>
