Q. Which method is used to add an element to the beginning of an array?

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

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