Which of the following method is used to remove and returns the first item from the array?

29. Which of the following method is used to remove and returns the first item from the array?

  1. Shift()
  2. Unshift()
  3. ShiftF()
  4. First()

Answer: A) Shift()

Explanation:

The shift() method is used to remove and returns the first item from the array.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.