To merge two arrays into a single array, you can use the _______ method.

  • merge()
  • concat()
  • join()
  • combine()
The correct method is concat(). The concat() method is used to merge two or more arrays into a single array. It doesn't modify the original arrays but returns a new array containing the elements from the source arrays. For example, const mergedArray = array1.concat(array2); merges array1 and array2 into mergedArray.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *