title: push array's value to object's value
body: <p>I have a question about the array and object conversion. I have an array which has three values. if my object has already had its key, how do I put the array value to the object by for loop?</p>
  <p>If I use for loop like below, every value is engineer.</p>
  <pre><code>let arr= ['john', 29, 'engineer']
  let obj = {}
  for (let i = 0; i &lt; arr.length; i++) {
      obj.name = arr[i]
      obj.age = arr[i]
      obj.job = arr[i]
  }
  
  console.log(obj)
  </code></pre>
  <p>The result of above code:</p>
  <pre><code>{
    name: 'engineer',
    age: 'engineer',
    job: 'engineer'
  }
  </code></pre>
  <p>Instead, I want the following result:</p>
  <pre><code>{
    name: 'john',
    age: 29,
    job: 'engineer'
  }
  </code></pre>