Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add array to array javascript

 // SPREAD OPERATOR
 const list1 = ["pepe", "luis", "rua"];
 const list2 = ["rojo", "verde", "azul"];
 const newList = [...list1, ...list2];
 // ["pepe", "luis", "rua", "rojo", "verde", "azul"]
 
PREVIOUS NEXT
Tagged: #add #array #array #javascript
ADD COMMENT
Topic
Name
7+7 =