πŸ“Š JavaScript
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

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