JavaScript String split

JavaScript String split


JavaScript String split() method
In this Tutorial, we will learn about JavaScript String split() method with the help of following below:
The split() method will convert strings into an array of strings.
Syntax
var splitStr = str.split(separator, limit);
Example
Output