Which of the following method is used to add a new value to the array's beginning?

27. Which of the following method is used to add a new value to the array's beginning?

  1. Shift()
  2. Insert()
  3. Add()
  4. Unshift()

Answer: D) Unshift()

Explanation:

Unshift() method is used to add a new value to the array's beginning.

Comments and Discussions!

Load comments ↻






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