A

Admin • 833K Points
Coach

Q. What does the push() method do?

  • (A) Adds an element to the end of an array
  • (B) Removes the last element
  • (C) Adds an element to the beginning
  • (D) Removes the first element
  • Correct Answer - Option(A)
  • Views: 15
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

push() appends one or more elements to the end of an array.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.