charat() Function

Function

charat( text, index )

Returns the character at given index within specified string.

Parameters

Keyword Type Description

text

Text

The text string to find the character.

index

Number

The integer index position of the character, starting at one (1).

Returns

Text

Examples

You can experiment with this function in the test box below.

Test Input

charat("string",2) returns t

Open in Github

On This Page

FEEDBACK