charAt
Returns the character at the given index.
Zero-based indexing applies, so the first character is at index 0, the second is at index 1, and so on.
Blank spaces count as characters.
Parameters
STRING (string)
The input string.
INDEX (number)
The index value.
Examples
ATL in Script | Result |
---|---|
| A |
| l |
| w |
| n |
| J |
To get a subset of the input string, use the syntax for string slicing instead.
ATL in Script | Result |
---|---|
| All |
| y |