# \[solved\] "Manipulate Arrays w/ Push". Is .push a Method?

**URL:** <https://forum.freecodecamp.org/t/solved-manipulate-arrays-w-push-is-push-a-method/162656>\
**Category:** General\
**Created:** [December 7, 2017, 8:47am UTC](https://forum.freecodecamp.org/t/solved-manipulate-arrays-w-push-is-push-a-method/162656 "2017-12-07T08:47:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rafawashere](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/rafawashere/32/160943_2.png) [@rafawashere](https://forum.freecodecamp.org/u/rafawashere)\
**Post date:** [December 7, 2017, 12:21pm UTC](https://forum.freecodecamp.org/t/solved-manipulate-arrays-w-push-is-push-a-method/162656/2 "2017-12-07T12:21:30Z")

</div>

The push() method adds one or more elements to the end of an array and returns the new length of the array.

```auto
var numbers = [1, 2, 3];
numbers.push(4);

console.log(numbers); // [1, 2, 3, 4]

numbers.push(5, 6, 7);

console.log(numbers); // [1, 2, 3, 4, 5, 6, 7]

```

Found this example here [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Array/push](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/push)

---

_[View the full topic](https://forum.freecodecamp.org/t/solved-manipulate-arrays-w-push-is-push-a-method/162656)._
