Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Merging Or Copying Arrays Using Spread Operator

let techlist1= ['spring', 'java'];
 let techlist2= ['javascript', 'nodejs', 'mongo'];
 let fullstacklist= […techlist1, …techlist2];
 console.log(fullstacklist);
Source by frugalisminds.com #
 
PREVIOUS NEXT
Tagged: #Merging #Or #Copying #Arrays #Using #Spread #Operator
ADD COMMENT
Topic
Name
6+4 =