Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

concatenate arrays

let arr1 = [0, 1, 2];
let arr2 = [3, 4, 5];

//  Append all items from arr2 onto arr1
arr1 = arr1.concat(arr2);
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #concatenate #arrays
ADD COMMENT
Topic
Name
2+7 =