Q. Which method is used to remove the last element of an array?

  • (A) pop()
  • (B) push()
  • (C) shift()
  • (D) splice()
πŸ’¬ Discuss
βœ… Correct Answer: (A) pop()
Explanation: pop() removes the last element from an array and returns it.
Explanation by: Mr. Dubey
pop() removes the last element from an array and returns it.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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