Shift
Use .shift to remove the first item of an array.
For example:
var array = [1, 2, 3, 4];
array.shift();
array results in:
[2, 3, 4]
Pop
Further .pop is used to remove the last item from an array.
For example:
var array = [1, 2, 3];
array.pop();
array results in:
[1, 2]
Bot...