title: Javascript: access an object property whose name starts with a number
body: <p>I'm creating a <strong>Javascript</strong> / <strong>jQuery</strong> application.</p>
  
  <p>I need to process a <strong>JSON</strong> response that represents a <code>HashMap</code>, like this:</p>
  
  <pre><code>  {
      "accounts": {
        "MediaFire": {
         "provider": "MediaFire",
         "usedStorage": "779680",
         "totalStorage": "53687091200"
        },
        "4Sync": {
         "provider": "4Sync",
         "usedStorage": "620692",
         "totalStorage": "16106127360"
        }
      }
    }
  </code></pre>
  
  <p>I use a pasing function (which I can't control), which returns the parsed JSON response in an object <code>result</code>.</p>
  
  <p>When I try to access the <code>4Sync</code> like this:</p>
  
  <pre><code>var usedStorage = result.accounts.4Sync.usedStorage; //doesn't work
  </code></pre>
  
  <p>it doesn't work, I think <strong>it's because of the <em>4</em> at the beginning</strong>... The same operation with the other object works fine:</p>
  
  <pre><code>var usedStorage = result.accounts.MediaFire.usedStorage; //works
  </code></pre>
  
  <p>I know the <code>result</code> object contains the object <code>4Sync</code>, but I can't access it. Here is a screenshot of Chrome's console:</p>
  
  <p><img src="https://i.stack.imgur.com/FalpN.png" alt="screenshot of Chrome&#39;s console"></p>
  
  <p>Is there any workaround to solve this?</p>