Answers for "js merge 2 lists"

4

js merge 2 lists

var array1 = ["Vijendra", "Singh"];
var array2 = ["Singh", "Shakya"];

console.log(array1.concat(array2));
// output: ["Vijendra", "Singh", "Singh", "Shakya"]
Posted by: Guest on July-13-2020
2

join 2 array in javascript

var array1 = ["Vijendra", "Singh"];
var array2 = ["Singh", "Shakya"];

console.log(array1.concat(array2));
Posted by: Guest on June-01-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language