push() function in JavaScript is used to ___

26. push() function in JavaScript is used to ____.

  1. Remove an element from the end of an array
  2. Insert an element at the end of an array
  3. Both A and B
  4. Update an element of an array

Answer: B) Insert an element at the end of an array.

Explanation:

The push() function is used to add an element at the end of an array.

Comments and Discussions!

Load comments ↻






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