Can’t Index Strings in Javascript

I just found out the hard way that in Internet Explorer, you can’t index a string like an array. The following works OK in Firefox, but it fails in IE:

stringVar[foo]

That will be undefined in IE.

Leave a Reply

Your email address will not be published.