GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.geeksforgeeks.org — JavaScript Array concat() Method - GeeksforGeeks JavaScript Array concat() MethodLast Updated : 19 Jan, 2026 The concat() method is used to join two or more arrays together. It creates a new array that contains all the combined elements.
Syntax: let newArray1 = oldArray.concat() Parameters:The concat() method accepts multiple values or arrays as parameters. These parameters decide what will be added to the original array.
Return value:The concat() method returns a combined result of all the provided arrays. It produces a new array after merging everything together.
[Example 1]: Below the Array concat() method to join three arrays.
[Example 2]: The method concat() concatenates all the arguments passed to the method with the given array into one array which it returns as the answer.
[Example 3]: The method concat() concatenates both arrays into one array which it returns as the answer.
Comment Explore |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |