how to add an array to another array in javascript

JavaScript
//ES6
const array3 = [...array1, ...array2];
Source

Also in JavaScript: