1.push(), adds one or more elements to the end of an array and return the new length;
example:
2.pop(), removes an element from the end of an array and returns that item;
example:
3.unshift(), add one or more elements to the beginning of an array and returns the new length;
example:
add more elements:
4.shift(), removes an element from the beginning of an array and returns that element.
example:
Top comments (0)