JavaScript Professional — Easy
Key points
- The charAt() method returns an empty string if the specified index is out of range.
- In this case, the index 10 is beyond the length of the string 'abc'.
- Therefore, the method returns an empty string as the output.
Ready to go further?
Related questions
