UNPKG

wat

Version:

Community-controlled cheat sheets for every coder.

12 lines (8 loc) 208 B
## .push() Appends new elements to an array, and returns the new length of the array. ```js let arr = [1, 2, 3, 4, 5]; var length = arr.push(6); // length: 6 // arr: [1, 2, 3, 4, 5, 6] ```