---
title: "Discussion on \"Shallow copy and Deep copy\" | Hashnode"
description: "Discussion on \"Shallow copy and Deep copy\". Deep and Shallow copy is a technique in which we copy arrays or objects so that they don't have the same reference in the memory. Why do we need deep or shallow copy? So we need it in pure functions where arguments should not get mutate. Let's get st..."
url: "https://hashnode.com/posts/shallow-copy-and-deep-copy/628a15ddaad1d357809ff766"
---

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

Discussion

# [Shallow copy and Deep copy](https://pratikdevle.hashnode.dev/shallow-copy-and-deep-copy?utm_source=hashnode&utm_medium=feed)

Deep and Shallow copy is a technique in which we copy arrays or objects so that they don't have the same reference in the memory. Why do we need deep or shallow copy? So we need it in pure functions where arguments should not get mutate. Let's get st...

May 22, 2022 · 3 min read · pratikdevle.hashnode.dev  
Read the article

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

## 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.
