-1

The outputs for the two are the same. I prefer "string"[0] because it's shorter, but when would you want to use charAt() instead?

mavili
  • 3,385
  • 4
  • 30
  • 46
Patrick
  • 2,176
  • 3
  • 18
  • 21

1 Answers1

4

string[0] is not supported by IE7.

SLaks
  • 868,454
  • 176
  • 1,908
  • 1,964