Courses / JavaScript
14. String.prototype.charAt()
Returns the character at a specified index in a string.
1 min read Chapter 14 of 99
JavaScript
String.prototype.charAt()
The `charAt()` method returns the character at a specified index in a string.
"I need to access specific characters in a string without breaking my code."
`charAt()` retrieves the character located at a given index in a string, making it easy to access individual characters for processing.
"I need to access specific characters in a string without breaking my code."
`charAt()` retrieves the character located at a given index in a string, making it easy to access individual characters for processing.