July 1998
Intermediate to advanced
1456 pages
65h 5m
English
substring() — NN 2 IE J1 ECMA 1
substring(startPositionIndex,endPositionIndex)
Returns a copy of an extract from the current string. The extract
begins at the zero-based index position of the current string as
specified by the first parameter of the method and ends at the
character whose index is specified by the second parameter. In
contrast, the substr() method’s parameters
point to the start position of the main string and the number of
characters (length) to extract.
A string.
startPositionIndex
A zero-based integer indicating the position within the current string object to start copying characters
endPositionIndex
A zero-based integer indicating the position within the current string object to end copying characters
Read now
Unlock full access