Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

concat array javascript

const letters = ['a', 'b', 'c'];
const numbers = [1, 2, 3];

const newArray = letters.concat(numbers);
// newArrat is ['a', 'b', 'c', 1, 2, 3]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #concat #array #javascript
ADD COMMENT
Topic
Name
4+1 =