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

πŸ‘οΈ
63
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Chandani
Publisher
πŸ“ˆ
93%
Success Rate