Answers for "merging to arrays"

0

merging to arrays

const array1 = ["item1", "item2"];

const array2 = ["item3", "item4", "item5", "item6"];

const array3 = array1.concat(array2);
// ["item1", "item2", "item3", "item4", "item5", "item6"]
Posted by: Guest on July-01-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language