Skip to content

Glossary: JavaScript Basics

push / pop / shift / unshift

Also written: push, pop, shift, unshift

Array methods that change the array: `push` and `pop` add and remove at the end, `unshift` and `shift` at the start. `pop` and `shift` give back the removed element.

Where the book teaches it

Related terms

Arraysplice