I\'ve always thought that if you want to access the nth character in a string called str, then you have to do something like str.charAt(n). Today I was
str
str.charAt(n)
As long as I can remember, but:
Array-like character access [...] is not part of ECMAScript 3. It is a JavaScript and ECMAScript 5 feature.
(...and not supported in all browsers) See here.