Which method removes and returns the last element of an array?

JavaScript Associate Easy

JavaScript Associate — Easy

Which method removes and returns the last element of an array?

Key points

  • pop() removes the last element of an array
  • shift() removes the first element of an array
  • splice() can remove elements from anywhere in an array
  • delete() does not shift remaining elements in an array

Ready to go further?

Related questions