title: Add Variable to Object Literal
body: <p>I'm trying to add a variable to an object I'm creating, but when I log the object <code>id</code> appears simply as <code>id</code>, instead of my <code>ref.key()</code> value.</p>
  
  <pre><code>var id = ref.key();
  
  var newItem = {
    'provider1': {
      'services': {
        id: true
      }
    }
  };
  
  console.log(newItem);
  </code></pre>
  
  <p>Any idea what I'm doing wrong? Any help is appreciated. Thanks in advance!</p>