-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,265
  • 4
  • 29
  • 45
Patrick
  • 2,106
  • 3
  • 16
  • 20

1 Answers1

4

string[0] is not supported by IE7.

SLaks
  • 837,282
  • 173
  • 1,862
  • 1,933