JavaScript Array pop()
JavaScript Array pop()
The pop() method is used to remove the last element of an array. It changes the original array and returns the removed element.
Syntax:-
Its syntax is:- array.pop()
Return:-
Its return is:- item that is removed.