title: Iterate one for in loop through multiple objects in JavaScript
body: <p>I have two JSON object <code>obj1</code> &amp; <code>obj2</code>. I want to compare values of these objects.</p>
  
  <pre><code>var obj1 = {"Don":"Test1","is":"hey","here":"yeah"};
  var obj2 = {"Don":"Test1","is":"20","here":"lol"};
  </code></pre>
  
  <p>I want to do something like this: </p>
  
  <pre><code>for( var key1 in obj1 &amp;&amp; var key2 in obj2){
    if(obj1.hasOwnProperty(key1) &amp;&amp; obj2.hasOwnProperty(key2))
      console.log(obj1[key1]+ " : " + obj2[key2]);
  }
  </code></pre>
  
  <p>My output should be:</p>
  
  <pre><code>Test1:Test1
  hey:20
  yeah:lol
  </code></pre>