CharAt(): The charAt() method returns the character at a specified position in a string.
Syntax:
string.charAt(index)
Example:
let text = “Charecter”;
text.charAt(0);
The output will be “C”
And again
text.charAt(3);
The output will be “r”
Top comments (0)