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

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
80
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Chandani
Publisher
πŸ“ˆ
96%
Success Rate