---
title: "Discussion on \"Array methods: pop( ) and shift( )\" | Hashnode"
description: "Discussion on \"Array methods: pop( ) and shift( )\". Array pop\nWith the Array method pop(), you can remove the last element from an array and it returns the removed element. \npop() changes the length of the array.If you call pop() in on an empty array, it will return undefined. \n\nArray shift\nshift() Is..."
url: "https://hashnode.com/posts/array-methods-pop-and-shift/5ffec70dc162d710c9b13d77"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Array methods: pop( ) and shift( )](https://matshaby.hashnode.dev/array-methods-pop-and-shift?utm_source=hashnode&utm_medium=feed)

Array pop With the Array method pop(), you can remove the last element from an array and it returns the removed element. pop() changes the length of the array.If you call pop() in on an empty array, it will return undefined. Array shift shift() Is...

Jan 13, 2021 · 1 min read · matshaby.hashnode.dev  
Read the article

-   [#array-methods](https://hashnode.com/tag/array-methods)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#learning-journey](https://hashnode.com/tag/learning-journey)

## Written by

[Mats Haby](https://hashnode.com/@MatsHaby)

@MatsHaby · Sweden

  
[View profile](https://hashnode.com/@MatsHaby)

Web devloper in learning

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
