Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js push array into array

var fruits = ["Orange", "Apple", "Mango"];
var moreFruits = ["Banana", "Lemon", "Kiwi"];

fruits.push(...moreFruits);
//fruits => ["Orange", "Apple", "Mango", "Banana", "Lemon", "Kiwi"] 
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js #push #array #array
ADD COMMENT
Topic
Name
8+6 =