Array push() method | Array Push() in hindi

Опубликовано: 12 Октябрь 2025
на канале: Code With Fun
24
3

Here's a summary of the push() method:

Syntax: array.push(element1, element2, ..., elementN)
array: The array to which elements will be added.
element1, element2, ..., elementN: The elements to be added to the array.
When you use the push() method, the elements are added to the end of the array, effectively extending the array's length. If you provide multiple elements as arguments, they are appended in the order they appear.