charAt Method
Description
Retrieves the character at the index specified.Syntax
charVariable = strVariable.charAt(index)
charVariable = "String Literal".charAt(index)Return Value
A character value equal to the character at the specified index.
Arguments
index: The zero-based index of the desired character. Valid values are between 0 and the length of the string minus 1.
Remarks
The first character in a string is at index 0, the second is at index 1, etc. Values of index out of valid range return undefined.