JS: String.prototype.split()
The String.prototype.split() function divide the string into array of sub-strings. You can perform other array manipulation on the resultant string.The syntax for split() function is given below.Separator – it is a character that is used to separate the sub-strings. It is optional, however, a separator is required to divide the sub-strings.Limit – it is the … Read more