---
title: "Discussion on \"How arrays and objects are copied in JavaScript?\" | Hashnode"
description: "Discussion on \"How arrays and objects are copied in JavaScript?\". First, we need to thoroughly understand two concepts.\n1) Pass by value.\n2) Pass by reference."
url: "https://hashnode.com/posts/how-arrays-and-objects-are-copied-in-javascript/62b5e19d92447c9aed5b5918"
---

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

Discussion

# [How arrays and objects are copied in JavaScript?](https://blog.aamchora.space/how-arrays-and-objects-are-copied-in-javascript?utm_source=hashnode&utm_medium=feed)

First, we need to thoroughly understand two concepts. 1) Pass by value. 2) Pass by reference.

Jun 24, 2022 · 2 min read · blog.aamchora.space  
Updated Jul 29, 2022  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#react-native](https://hashnode.com/tag/react-native)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#data-structures](https://hashnode.com/tag/data-structures)

## Written by

[Hemendra Khatik](https://hashnode.com/@Aamchora)

@Aamchora · India

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

Learn, Unlearn and Evolve.

I'm a college dropout turned self-taught developer. I transform documented ideas into functioning scalable tech products.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
