Javascript array push => http://amolidil.nnmcloud.ru/d?s=YToyOntzOjc6InJlZmVyZXIiO3M6MjE6Imh0dHA6Ly9iaXRiaW4uaXQyX2RsLyI7czozOiJrZXkiO3M6MjE6IkphdmFzY3JpcHQgYXJyYXkgcHVzaCI7fQ== The concat method does not alter this or any of the arrays provided as arguments but instead returns a shallow copy that contains copies of the same elements combined from the original arrays. The source for this interactive example is stored in a GitHub repository. The concat method does not alter this or any of the arrays provided as arguments but instead returns a shallow copy that contains copies of the same elements combined from the original arrays. If you'd like to contribute to the interactive examples project, please clone and send us a pull request. It does not recurse into nested array arguments. Furthermore, any operation on the new array except operations on elements which are object references will have no effect on the original arrays, and vice versa. If you'd like to contribute to the interactive examples project, please clone and send us a pull request. Furthermore, any operation on the new array except operations on elements which are object references will have no effect on the original arrays, and vice versa. Both the original and new array refer to the same object. Return value A new instance. Description The concat method creates a new array consisting of the elements in the object on which it is called, followed in order by, for each argument, the elements of that argument if the argument is an array or the argument itself if the argument is not an array. See the description below for more details. It does not recurse into nested array arguments. The source for this interactive example is stored in a GitHub repository. This includes elements of array arguments that are also arrays. Array.prototype.push() - Both the original and new array refer to the same object. The source for this interactive example is stored in a GitHub repository. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone and send us a pull request. If value N is undefined, concat returns a shallow copy of the existing array on which it is called. See the description below for more details. Return value A new javascript array push. Description The concat method creates a new array consisting of the elements in the object on which it is called, followed in order by, for each argument, the elements of that argument if the argument is an array or the argument itself if the argument is not an array. It does not recurse into nested array arguments. The concat method does not alter this or any of the arrays provided as arguments but instead returns a shallow copy that contains copies of the same elements combined javascript array push the original arrays. Both the original and new array refer to the same object. That is, if a referenced object is modified, the changes are visible to both the new and original arrays. This includes elements of array arguments that are also arrays. Furthermore, any operation on the new array except operations on elements which are object references will have no effect on the original arrays, and vice versa.