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);
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments