JavaScript String substr() method : The substr() method is used to extract the sub-string from a string. It counts the index from 0.
While JavaScript has many applications, working with string values is one of the most popular. Strings are objects within the ...