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.

Leave a Reply

Your email address will not be published.

error: