how to split string in array javascript code example Example: split array javascript // Returns new array from exising one arr.slice(start, end);