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