The pop() method is used to remove the last element from an array.
- Removes the last element of an array
- Modifies the original array
- Returns the removed element
- If the array is empty, it returns undefined
The pop() method is used to remove the last element from an array.
Previous Article
Next Article