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.
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.