Google News
logo
JavaScript - Interview Questions
What is the procedure to merge two arrays?
Syntax :
 
var arr1 = [1,2,3]
var arr2 = [4,5,6,7]
var mergedArrays = […arr1, …arr2]
document.write(‘Merged arrays’, mergedArrays)
Advertisement