var arguments = ['One', 'Two', 'Three']; var middle = arguments.slice(1, -1); // will take away the 1st from the start and the 1st from the end console.log(middle); // once logged it will only show 'Two'
var middlePoints = ['A', 'B', 'C', 'D']; middlePoints.shift(); console.log(middlePoints); //['B', 'C', 'D']