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 www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #concat #array #javascript
ADD COMMENT
Topic
Name
9+2 =