title: pushing objects in a array inside a loop
body: <p>I am trying to push objects into an array inside a for loop. The expected data structure is </p>
  
  <pre><code>[{"valueItem":"item0"}, {"valueItem":"item1"}, {"valueItem":"item2"}, {"valueItem":"item3"}, {"valueItem":"item4"}]
  </code></pre>
  
  <p>The code I have is </p>
  
  <pre><code>var arr = [];
  var obj = {};
  
  for(var i = 0; i &lt; 5; i++){
    arr.push(obj.valueItem = 'item'+i);
  }
  
  console.log(arr)
  </code></pre>
  
  <p>But the what I get back is </p>
  
  <pre><code>["item0", "item1", "item2", "item3", "item4"]
  </code></pre>
  
  <p>What am I doing wrong?</p>