title: Is the JavaScript array really of type map
body: <p>In JavaScript you are able to place a variable or an object into an array in a various ways:</p>
  
  <pre><code>array.push(item)
  array[2] = item;
  array[somevariable] = item
  </code></pre>
  
  <p>the latter of the above example is what bothers me </p>
  
  <p>say for instance that i have the following variable <code>var somevariable = 'someString';</code></p>
  
  <p>i would be able to place this into the <code>array</code> as an index (or key) if you wish.</p>
  
  <p>This behavior is mostly seen in the <code>Map</code> interface suggesting that the array in JavaScript is not of the type <code>List</code>. </p>
  
  <p>Another note is that the <code>Array object</code> in JavaScript also has a <code>pop</code> method which is seen in the <code>Queue</code> interface.</p>
  
  <p>So my question is what data type is the <code>Array</code>in <code>JavaScript</code>?</p>