title: JavaScript access string chars as array
body: <p>Is it ok to do this:</p>
  
  <pre><code>var myString="Hello!";
  alert(myString[0]); // shows "H" in an alert window
  </code></pre>
  
  <p>Or should it be done with either charAt(0) or substr(0,1)?
  By "is it ok" I mean will it work on most browsers, is there a best practice recommandation that says otherwise etc.</p>
  
  <p>Thank you.</p>