DEV Community

Discussion on: Splice! Slice! Shoot, I meant Shift!

Collapse
 
marcellothearcane profile image
marcellothearcane

What's the difference between .shift() and .pop()?

Collapse
 
laurieontech profile image
Laurie

Pop() removes an item from the end of the array and shift() removes an item from the beginning of it.