concat() method copies elements from other arrays into a new array. It does not modify the original arrays.
In the example given above,
numbers contains the elements of both the
evenNumbers array as well as the
Other than arrays, the
concat() method accepts strings, numbers or boolean as arguments too.