for example if I have two arrys
can I get help on how to merge them to get arr1[10,20,30,40,50,60]
Jump to Post
Like many things in coding, there are a couple approaches. The simplest is to just use the JS built in function concat.
var newArray = arr1.concat(arr2);
Another approach (and less efficient) would be to loop through the second array and push each element onto the first using…
All 4 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.