title: value of another object as value in another associative array in Javascript
body: <p>So I have an array called xyz containing keys a and b.
  I want to input these into another array as follows :</p>
  
  <pre><code>seats =[{ 
          name : xyz.a.
          address: xyz.b}];
  </code></pre>
  
  <p>however the xyz.a is being stored as an object and not by it's value in seats.name and prints undefined when i use console.log</p>
  
  <p>I want to store xyz.a by its value such that seats.name gives the value stored in xyz.a</p>