Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

two array in one js

let arr1 = ["item1", "item2", "item3"]
let arr2 = ["item4", "item5", "item6"]

let arr3 = arr1.concat(arr2) //[ 'item1', 'item2', 'item3', 'item4', 'item5', 'item6' ]
 
PREVIOUS NEXT
Tagged: #array #js
ADD COMMENT
Topic
Name
2+9 =