Q. Which method removes the first element from an array?

  • (A) shift()
  • (B) unshift()
  • (C) pop()
  • (D) slice()
πŸ’¬ Discuss
βœ… Correct Answer: (A) shift()
Explanation: shift() removes the first element and shifts the remaining elements.
Explanation by: Mr. Dubey
shift() removes the first element and shifts the remaining elements.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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