The substring() function of string object returns the substring at the specified location from string. Use it for example to get substring from specified start location to end.
Syntax