.concat() can be used to merge the contents of two arrays into one.
.concat()
array = array.concat(otherArray);
There was an error while loading. Please reload this page.
New to Free Code Camp?
JS Concepts
JS Language Reference
Other Links