Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

es6 concat array

let fruits = ["apples", "bananas"];
let vegetables = ["corn", "carrots"];
let produce = [...fruits, ...vegetables];
//["apples","bananas","corn","carrots"]
Source by learn.coderslang.com #
 
PREVIOUS NEXT
Tagged: #concat #array
ADD COMMENT
Topic
Name
9+9 =