Array Methods Flashcards
1
Q
Removes last element in array and returns the removed element
A
pop()
2
Q
Adds a new element to an array and returns the new array length
A
push()
3
Q
Removes the first array element and moves all the other elements to a lower index and returns the removed element
A
shift()
4
Q
Adds a new element to an array at the beginning and returns the new array length
A
unshift()