You can concat array in JavaScript or cancat means you can say merge two variables. For example-

var arr1 = [‘A’,’B’,’C’];

var arr2 = [‘D’,’E’];

var result = arr1.concat(arr2);

console.log(result);

News Reporter
IT Software and web development, Core PHP, JavaScript, JQuery, HTML, CSS, CakePHP, Angularjs, Codeigniter etc.

8 thoughts on “Javascript Concat two array

  1. Hello, you used to write great, but the last few posts have been kinda boring¡K I miss your great writings. Past few posts are just a little out of track! come on!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

code