How to append something to an array?

Use the Array.prototype.push method to append values to the end of an array:  Run code snippet You can use the push() function to append more than one value to an array in a single call:  Run code snippet Update If you want to add the items of one array to another array, you can use firstArray.concat(secondArray):  Run code snippet Update … Read more