title: JavaScript dictionary with names
body: <p>I want to create a dictionary in JavaScript like the following:</p>
  <pre><code>myMappings = [
      { &quot;Name&quot;: 10%},
      { &quot;Phone&quot;: 10%},
      { &quot;Address&quot;: 50%},
      { &quot;Zip&quot;: 10%},
      { &quot;Comments&quot;: 20%}
  ]
  </code></pre>
  <p>I want to populate an HTML table later and want to set the titles of table to the first column of myMappings and the width of columns to the second. Is there a clean way to do it?</p>