Join three arrays:
The values of the children array will be:
The concat() method is used to join two or more arrays.
This method does not change the existing arrays, but returns a new array, containing the values of the joined arrays.
![]()
The concat() method is supported in all major browsers.
| Parameter | Description |
|---|---|
| array2, array3, ..., arrayX | Required. The arrays to be joined |
| Type | Description |
|---|---|
| Array object | The joined array |
| JavaScript Version: | 1.2 |
|---|
JavaScript Array Object
Your message has been sent to W3Schools.