how to split a string in javascript and store in array code example Example: HOW TO SPLIT AN ARRAY JAVASCRIPT array.splice(index, number, item1, ....., itemN)