title: to copy the values from one dictionary to other dictionary in javascript
body: <p>The following code snippet is unable to copy the contents from one dictionary to other. It is throwing a type error showing "copy.Add is not a function". Can someone suggest the ways to copy the key-value pairs from one dictionary to other.    </p>
  
  <pre><code>dict = {"Name":"xyz", "3": "39"};
  var copy={};
  console.log(dict);
  for(var key in dict)
  {
     copy.Add(key, dict[key]);
  }
  console.log(copy);
  </code></pre>