Answers for "join 2 array in javascript"

4

join 2 array in javascript

const array1 = ["Vijendra","Singh"];
const array2 = ["Singh", "Shakya"];
const array3 = [...array1, ...array2];
Posted by: Guest on June-01-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