title: Iterating Array of Objects in javascript
body: <p>I am having an array that consists the objects with a key, value how can we iterate each object for <code>caste</code> and <code>id</code>.</p>
  
  <pre><code>[
      Object {
          caste = "Banda",
          id = 4
      },
      Object {
          caste = "Bestha", 
          id = 6
      }
  ]
  </code></pre>