Q. Which method adds one or more elements to the beginning of an array?

  • (A) unshift()
  • (B) push()
  • (C) shift()
  • (D) pop()
πŸ’¬ Discuss
βœ… Correct Answer: (A) unshift()
Explanation: unshift() adds elements to the beginning of an array.
Explanation by: Mr. Dubey
unshift() adds elements to the beginning of an array.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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