The push() function of array object adds one or more elements to the end of the array and return new length of the array. Use it for example to appends elements in array.
Syntax
This will produce following result
This will produce following result