The substr() method extracts the characters from a string, beginning at "start" and through the specified number of character, and returns the new sub string.
This method has the form:
|start||(required) The index where to start the extraction. First character is at index 0|
|length||(optional) The number of characters to extract. If omitted, it extracts the rest of the string|
The following example shows the basic use of this method.
This produces the following result: