JavaScript substr

JavaScript SUBSTR Function

The JavaScript substr string function is one of the String functions, which is used to extract the part of a string and return in a new string. The syntax of the JavaScript substr function to return sub string is: String_Object.substr(Start, Length) JavaScript substr function will accept two arguments. The first integer value is the index position where … Read more