title: Use key's value as key in key-value pair in Javascript
body: <p>How can you use the value of a key-value pair as the key in a different key-value pair in javascript?</p>
  
  <p>I'd like to do the following:</p>
  
  <pre><code>var gizmos = {gizmo1: "G1"};
  var things = {gizmos.gizmo1: "T1"};
  </code></pre>
  
  <p>So that things essentially equals:</p>
  
  <pre><code>var things = {"G1": "T1"};
  </code></pre>