News

push() and pop(), these two methods append elements to an array and remove an element from the an array respectively. Both of these methods work at the end of the array, where the index is largest.
The push() method of {{jsxref("Array")}} instances adds the specified elements to the end of an array and returns the new length of the array. The push() method appends values to an array ... thanks ...