You can find the code for this article over on GitHub. The split() method splits a String object into an array of string by separating the string into sub strings. The split () method is used to split a string into an array of substrings, and returns the new... Browser Support. The split method returns the new array. The reverse() method reverses an array in place.