A

Admin • 828.03K Points
Coach

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

  • (A) push()
  • (B) unshift()
  • (C) shift()
  • (D) concat()
  • Correct Answer - Option(B)
  • Views: 6
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin
unshift() adds elements to the beginning of an array.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.