substring

returns the part of the string between the start and end indexes, or to the end of the string.

Syntax

substring(start, end)

Returns

returns (string) characters from start up to the end will be returned

Parameters

start (integer)
start index
end (integer)
end index