Search
The push() method is used to add a new element to the end of an array.
push()
In the example given above, vegetables.push("beetroot") adds a new element "beetroot" to the end of the vegetables array.
vegetables.push("beetroot")
vegetables