showing results for - "js merge 2 lists"
Rafaela
18 Jun 2017
1var array1 = ["Vijendra", "Singh"];
2var array2 = ["Singh", "Shakya"];
3
4console.log(array1.concat(array2));
5// output: ["Vijendra", "Singh", "Singh", "Shakya"]
Nicola
11 Jun 2019
1var array1 = ["Vijendra", "Singh"];
2var array2 = ["Singh", "Shakya"];
3
4console.log(array1.concat(array2));