JavaScript String substr() method
The JavaScript string substr() method retrieves the part of the given string on the basis of the specified starting position and length. The original string will not be modified. Syntax: string.substr(position, length) Parameters: position: It represents the position of the string from where the string retrieves starts. length: It represents the number of characters to … Read more