Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

join two arrays in js

const array1 = ["Vijendra","Singh"];
const array2 = ["Singh", "Shakya"];
const array3 = [...array1, ...array2];
// [ "Vijendra", "Singh", "Singh", "Shakya" ]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #join #arrays #js
ADD COMMENT
Topic
Name
1+8 =