---
title: "Discussion on \"Deep Copy vs Shallow Copy in JavaScript\" | Hashnode"
description: "Discussion on \"Deep Copy vs Shallow Copy in JavaScript\". Shallow copy copies the data reference while Deep copy copies the data and stores it in new memory location."
url: "https://hashnode.com/posts/deep-copy-vs-shallow-copy-in-javascript/627b91cc983a4ab69ce9cce2"
---

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

Discussion

# [Deep Copy vs Shallow Copy in JavaScript](https://yogupta.hashnode.dev/deep-copy-vs-shallow-copy-in-javascript?utm_source=hashnode&utm_medium=feed)

Shallow copy copies the data reference while Deep copy copies the data and stores it in new memory location.

May 11, 2022 · 4 min read · yogupta.hashnode.dev  
Updated May 12, 2022  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)

## Written by

[Yogesh Gupta](https://hashnode.com/@yogupta)

@yogupta · Mumbai,India

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

FrontEnd Engg

Software Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
