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?
Asked
Active
Viewed 79 times