substring

substring ( string txt , int indexBegin , int _indexEnd ) : string

Return part of a string

Example


console(substring("hello world", 0, 5)) //-> hello

Parameters

txt

indexBegin

_indexEnd (optional)