js split into array code example
Example 1: javascript explode
var str = "Well, how, are , we , doing, today";
var res = str.split(",");
Example 2: javascript split
var arr = foo.split('');
console.log(arr);
Example 3: split array javascript
arr.slice(start, end);
Example 4: HOW TO SPLIT AN ARRAY JAVASCRIPT
array.splice(index, number, item1, ....., itemN)
Example 5: javascript split array
var linkElement = document.getElementById("BackButton");
var loc_array = document.location.href.split('/');
var newT = document.createTextNode(unescape(capWords(loc_array[loc_array.length-2])));
linkElement.appendChild(newT);