charAt() returns the character at a specified index (position) in a string.
Get the last character in a string: