Home / Javascript Tips Generated By ChatGPT / Merging Arrays with Concatenation in Javascript Merge two or more arrays using the concat method. Source Code let array1 = [1, 2, 3]; let array2 = [4, 5, 6]; let mergedArray = array1.concat(array2); console.log(mergedArray);