js array without the first element code example

Example 1: javascript how to get every element after the 1st in an array

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'

Example 2: es6 remove first element of array

var myarray = ["item 1", "item 2", "item 3", "item 4"];

//removes the first element of the array, and returns that element.
alert(myarray.shift());
//alerts "item 1"

//removes the last element of the array, and returns that element.
alert(myarray.pop());
//alerts "item 4"