Description: Illustrates the JavaScript syntax for the String Substr .
Syntax: string.substr(startIndex,EndIndex) – Extracts the characters from a string, beginning at a specified start position, and through the specified number of character – endIndex is optional.