Javascript push() method appends elements in the Array. The push() method adds new elements to the end of an array and returns the new length. The push() method appends new item(s) at the end of the Array.
To append any item in Javascript array, use one of the following methods.
Javascript array push() is an inbuilt method that adds an element at the end of an array. You can append single or multiple items in the Array using the push() method.
array.push(element1, element2,..., elementn)
#javascript