How to join or combine two arrays to one array?

Bynayakdillip

How to join or combine two arrays to one array?

JavaScript Array concat() Method

it returns combine of records from two arrays.

Example:-
[html]
var programming = ["c#", "c","java","apex"];
var dataBaseRelated = ["SQL", "SOQL", "MySQL"];
var application = programming.concat(dataBaseRelated);
alert(application);
[/html]
It will print like this
c#,c,java,apex,SQL,SOQL,MySQL

About the author

nayakdillip administrator

Leave a Reply