title: JavaScript - short way of declaring an associative array
body: <p>Is there a short way of declaring an associative array like in PHP?</p>
  
  <pre><code>$myArray = array('a' =&gt; 'b'); // PHP Way
  </code></pre>
  
  <p>In JavaScript I'd do it this way:</p>
  
  <pre><code>var myArray = [];
  myArray['a'] = 'b';
  </code></pre>
  
  <p><s>I'm not looking for JavaScript objects.</s></p>