Q. Which array method removes the first element?

  • (A) shift()
  • (B) pop()
  • (C) unshift()
  • (D) splice()
πŸ’¬ Discuss
βœ… Correct Answer: (A) shift()
Explanation: shift() removes the first element of an array.
Explanation by: Mr. Dubey
shift() removes the first element of an array.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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