Menu Home

Array.push(), pop(), unshift(), shift()

Hi everyone, and welcome to another jam-packed sleep-a-thon of Boring JavaScript! Today, we cover the Array.push(), pop(), unshift(), and shift() methods. Why work with entire arrays when you can work only with the beginning and the end of the array? Need to implement a stack for your Z80 emulator? Then you’ve got the right video! Pull up a chair, watch the video, and fall asleep.