JavaScript has a concat() method that allows you to add contents of one array to another.

Example:

var ar1 = ["aa", "bb", "cc"];
var ar2 = ["dd", "ee", "ff"];

var ar3 = ar1.concat(ar2);

The new array ar3 will hold the contents of both arrays. The original array contents won’t change. 

For more JavaScript tips visit http://www.ekcsoft.com/coding/js.php