title: JSLint preferred access method in javascript-- dot notation or array brackets?
body: <p>A coworker is running JSLint on our code and fixing the issues that come up.  One change he made was to go from this:</p>
  
  <pre><code>document.getElementById(control["value1"]);
  </code></pre>
  
  <p>to this:</p>
  
  <pre><code>document.getElementById(control.value1);
  </code></pre>
  
  <p>Is it JSLint's preference to use the dot notation over array brackets?  My understanding from <a href="https://stackoverflow.com/questions/4968406/javascript-property-access-dot-notation-vs-brackets">here</a> is that the brackets are a bit more flexible, and I wondered what the best practices from the field were.</p>