title: Create an associative array with integer keys
body: <p>I need to create an associative array in javascript with an <code>integer</code> key as follows;</p>
  
  <pre><code>a["10"] = "ten";
  </code></pre>
  
  <p>but when i create an array, it puts the value to the <code>10th</code> index of the array and it creates an array with the length 11. I want it to be a key value pair. I know this can be done by using objects but i need an array only.</p>