JavaScript Array push() Method
The Array.push() method is a built-in JavaScript function used to add one or more elements to the end of an array. It directly modifies the original array by increasing its length and returns the new length of the array. Syntax Parameters (Required) The elements are to be added to the end of the array. Description…