title: How can I statically declare a Javascript object instance (a.k.a "associative array") whose property names (a.k.a keys) contain dashes?
body: <p>I want to statically declare a Javascript object (sometimes referred to as "associative array" when used as such) whose property names ("keys") contain dashes?</p>
  
  <p>Without dashes (works):</p>
  
  <pre><code>myObject = {field_1:"aaa", field_2:"bbb"};
  </code></pre>
  
  <p>With dashes (results in syntax error):</p>
  
  <pre><code>myObject = {field-1:"aaa", field-2:"bbb"};
  </code></pre>
  
  <p>(And yes, I'm fully aware that such properties containing dashes <a href="https://stackoverflow.com/questions/7122609/how-do-i-reference-a-javascript-object-property-with-a-hyphen-in-it">can only be referenced by using "bracket notation" rather than "dot notation"</a>, but that's a completely other story, I'm only talking about the case of static declaration of such objects here.)</p>