title: How to create object dynamically
body: <p>I am new in Javascript. I want to create array of dynamic object. Here for example</p>
  
  <p>I have an array of constructor in which I am getting some value. In my constructor MyItms have some attributes like value and property. I want to make an object by assigning or mapping to property</p>
  
  <pre><code>var Item = MyItems;
      for(var i=0; i&lt;MyItems.length; i++){
              var Values = MyItems[i]._value; // Car is my value here
              var prop =     MyItems[i]._property; // Name
                  var obj ={
                      prop : Values
                  };
      }
  </code></pre>
  
  <p>But In this case obj is returning value like </p>
  
  <pre><code>`prop : car`,
  </code></pre>
  
  <p>What I am expecting here is 
      Name : Car</p>
  
  <p>Also I want array of objects for all <code>MyItems</code> Any way to get this.
  Thanks in advance.</p>