Which method adds one or more elements to the end of an array?

JavaScript Associate Easy

JavaScript Associate — Easy

Which method adds one or more elements to the end of an array?

Key points

  • push() method adds elements to the end of an array.
  • unshift() adds elements to the beginning.
  • concat() creates a new array by combining existing arrays.
  • splice() is used for adding or removing elements at any position in an array.

Ready to go further?

Related questions