JavaScript Strings

The substring() Method

substring() extracts a part of a string: