title: JavaScript - Trying to access an array but getting undefined
body: <p>Been a long time reader of Stack overflow but have never joined and asked a question but I guess there's a first time for everything.</p>
  
  <p>I'm currently having an issue with an array in JS that is being used to store Twitter, Instagram and Pinterest feeds, as well as their timestamps.</p>
  
  <p>Here is how the array was created...</p>
  
  <pre><code>var array = [];
  </code></pre>
  
  <p>Here is an example of how the feed and time is inserted into the array...</p>
  
  <pre><code>for (i &lt; 0; i &lt; 10; i++) {
  array[i] = [feed, time] };
  </code></pre>
  
  <p>The array I'm getting looks something like this...</p>
  
  <pre><code>[[0[0][1]]]
  [[1[0][1]]]
  [[2[0][1]]]
  </code></pre>
  
  <p>When I console log the following...</p>
  
  <blockquote>
    <p>console.log(array[[5]]);</p>
  </blockquote>
  
  <p>I get this response...</p>
  
  <pre><code>["&lt;a href="http://www.twi...ontrolled through diet.", "145339"]
  </code></pre>
  
  <p>How can I get the "145339" part just by itself?</p>
  
  <p>I tried <code>"console.log(array[[5[1]]])"</code> but I get the message "undefined".</p>