---
title: "Discussion on \"Array Method: How to add and remove elements from Array\" | Hashnode"
description: "Discussion on \"Array Method: How to add and remove elements from Array\". how we can use push() and unshift() to add elements to an array and pop() and shift() to remove an element from array."
url: "https://hashnode.com/posts/array-method-how-to-add-and-remove-elements-from-array/6107b46033a2a43971a2fd13"
---

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

Discussion

# [Array Method: How to add and remove elements from Array](https://pratikdevle.hashnode.dev/array-method-how-to-add-and-remove-elements-from-array?utm_source=hashnode&utm_medium=feed)

how we can use push() and unshift() to add elements to an array and pop() and shift() to remove an element from array.

Aug 2, 2021 · 2 min read · pratikdevle.hashnode.dev  
Read the article

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

## Written by

[Pratik Devle](https://hashnode.com/@pratikdevle)

@pratikdevle · India

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

Learning web development

A passionate frontend developer &amp; always learning new things!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
