In this tutorial, you’ll be going to learn how to convert string to array using javascript split method. The easiest approach to use javascript built-in method String.split().
JavaScript split string method return array of a substring after splitting a string based on the separator you provide. The separator might be a string, special character or regular expression.