JavaScript » String » substring

Syntax:
object.substring(indexA, indexB)

This method returns the characters in a string between two specified indices as a substring.