title: Get Value from Key Value array
body: <p>I have an array with key value pairs.</p>
  
  <pre><code>var array=[
               {Key:"Name",Value:"Sam" },
               {Key:"Marks",Value:"50"},
               {Key:"Subject",Value:"English"},
            ];
  </code></pre>
  
  <p>I want to push <code>Value</code> of object whose <code>Key</code> is 'Subject' into a variable. I tried to see how Value can be accessed but failed at the very first step.
  How can this be done? </p>
  
  <pre><code>for (var key in array[0])
  {
      console.log(key[i].Value); //error:  Cannot read property 'Value' of undefined
  }
  </code></pre>
  
  <p>How can I push <code>Value</code> of object whose <code>Key</code> is 'Subject' into a variable?</p>