Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add an array to another array javascript

var array1 = ['Hamburger', 'Fries']
var array2 = ['Salad', 'Fruits']

var combinedArray = array1.concat(array2); // => ['Hamburger', 'Fries', 'Salad', 'Fruits']
 
PREVIOUS NEXT
Tagged: #add #array #array #javascript
ADD COMMENT
Topic
Name
7+2 =