---
title: "Discussion on \"How to make a deep copy in javascript\" | Hashnode"
description: "Discussion on \"How to make a deep copy in javascript\". In javascript, we should not modify the original data or mutate the original data, so to avoid this, we need to know how to make a deep copy of the original data, so by doing a deep copy we get the new data without modifying to original data.\nLet's u..."
url: "https://hashnode.com/posts/how-to-make-a-deep-copy-in-javascript/627e19985cbe9ede04a90cbf"
---

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

Discussion

# [How to make a deep copy in javascript](https://mahendrachauhan.hashnode.dev/how-to-make-a-deep-copy-in-javascript?utm_source=hashnode&utm_medium=feed)

In javascript, we should not modify the original data or mutate the original data, so to avoid this, we need to know how to make a deep copy of the original data, so by doing a deep copy we get the new data without modifying to original data. Let's u...

May 13, 2022 · 3 min read · mahendrachauhan.hashnode.dev  
Updated Sep 5, 2022  
Read the article

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

## Written by

[Mahendra Chauhan](https://hashnode.com/@mahendrachauhan)

@mahendrachauhan

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
