javascript append array to array
snippet in javascript

javascript append to array

user6450

var colors=["red","white"];
colors.push("blue");//append 'blue' to colors

javascript append array to array

user9462

const array1 = ['a', 'b', 'c'];
const array2 = ['d', 'e', 'f'];
const array3 = array1.concat(array2);

how to add an array to another array in javascript

user2039


var hege = ["Cecilie", "Lone"];

var stale = ["Emil", "Tobias", "Linus"];

var kai = ["Robin"];

var children = hege.concat(stale, kai); 

javascript append array to end of array

user4614

const new_array = old_array.concat([value1[, value2[, ...[, valueN]]]])