A

Admin • 833K Points
Coach

Q. Which method removes the first element from an array?

  • (A) shift()
  • (B) unshift()
  • (C) pop()
  • (D) slice()
  • Correct Answer - Option(A)
  • Views: 21
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

shift() removes the first element and shifts the remaining elements.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.