title: using console.log to show value in object
body: <p>I have an array of objects like this:</p>
  
  <pre><code>Object {index: "4", value: -1} 
  Object {index: "0", value: 0} 
  Object {index: "6", value: 0} 
  Object {index: "8", value: 0} 
  Object {index: "1", value: 1} 
  Object {index: "3", value: 1} 
  Object {index: "5", value: 1} 
  Object {index: "7", value: 1}
  </code></pre>
  
  <p>The very first one has an index of 0 and I can access it like <code>console.log[array[0]</code> which will give me <code>Object {index: "4", value: -1}</code> now what if instead of using an index of the object array I wanted to access it by the <code>value</code> or <code>index</code> inside the object itself. I have tried several different commands like. </p>
  
  <pre><code>console.log(array["index: " + 8]
  console.log(array["index:" == 8]
  </code></pre>
  
  <p>none of these are doing anything except throwing undefined or errors for the two examples above I wanted them to print out <code>Object {index: "8", value: 0}</code> I hope this makes sense</p>