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
πŸ’¬ Discuss
βœ… Correct Answer: (A) Adds an element to the end of an array
Explanation: push() appends one or more elements to the end of an array.
Explanation by: Mr. Dubey
push() appends one or more elements to the end of an array.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
85
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate