shift() removes the first element unlike pop() which removes the last.
shift()
pop()
There was an error while loading. Please reload this page.
New to Free Code Camp?
JS Concepts
JS Language Reference
Other Links