A

Admin • 833K Points
Coach

Q. Which method is used to remove the last element of an array?

  • (A) pop()
  • (B) push()
  • (C) shift()
  • (D) splice()
  • Correct Answer - Option(A)
  • Views: 20
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

pop() removes the last element from an array and returns it.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.