title: how to create Object key & value in JavaScript dynamically from array string
body: <p>I want to create a JavaScript object dynamically from two arrays of strings. One array is used for the key and another for the value. e.g. it should create *<em>element.name="xyz";</em>*etc</p>
  
  <pre><code> var key=["name","id","surname"];
   var value=[["xyz","01","abc"],["def","02","ghi"]]; 
   var element=new Object();
  </code></pre>
  
  <p>from the above value it should create an object like this:</p>
  
  <pre><code>    var element=new Object();
      element.name="xyz";
      element.id="01";
      element.surname="abc";
  
      var element =new Object();
      element.name="def";
      element.id="02";
      element.surname="ghi";
  </code></pre>