title: Best way to store a key=>value array in JavaScript?
body: <p>What's the best way to store a <code>key=&gt;value</code> 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>