HOW TO SPLIT AN ARRAY JAVASCRIPT

JavaScript
array.splice(index, number, item1, ....., itemN)
var str = "How are you doing today?";

var res = str.split(" ");
 
Source

Also in JavaScript: