title: print properties and values of an object at the same time-Javascript
body: <p>Assuming we have the following Javascript Object</p>
  
  <pre><code>var t={name:"John",age:34,zip:"82900"}
  </code></pre>
  
  <p>If I use the following code to print all properties of that object:</p>
  
  <pre><code>for(var x in t){
  console.log(t[x]);
  }
  </code></pre>
  
  <p>I will get John, 34, 82900.Now my question is how to to print each propertie's name
  for example to print age,34 name,John
  that object might have more properties than i wrote above since the user can add its own properties inside that object</p>