Where is it documented that a string subscript produces a character?
<p>I was surprised when I did this:</p>

<pre><code>var s = "Cities of the Internet";
var strings = s.split(" ");
alert (s[2]); // shows t!!!!!
</code></pre>

<p>Of course I realized that I meant strings[2], but why does subscripting a string produce a character.  Did I miss something in my reading of JavaScript books?  I probably did.  Is this standard?</p>
