---
title: "Discussion on \"Understanding of Deep Copy and Shallow Copy in JavaScript\" | Hashnode"
description: "Discussion on \"Understanding of Deep Copy and Shallow Copy in JavaScript\". Have you ever copied an object in Javascript, only to find out the changes in the new object also affect the original? But you clearly made a copy, so why does the original still get affected?\nThis is why understanding the concept of deep copy and sh..."
url: "https://hashnode.com/posts/understanding-of-deep-copy-and-shallow-copy-in-javascript/67f2aea38f91211f393533e5"
---

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

Discussion

# [Understanding of Deep Copy and Shallow Copy in JavaScript](https://kannanravi.hashnode.dev/understanding-of-deep-copy-and-shallow-copy-in-javascript?utm_source=hashnode&utm_medium=feed)

Have you ever copied an object in Javascript, only to find out the changes in the new object also affect the original? But you clearly made a copy, so why does the original still get affected? This is why understanding the concept of deep copy and sh...

Apr 6, 2025 · 5 min read · kannanravi.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#javascript-concept](https://hashnode.com/tag/javascript-concept)
-   [#deepcopy](https://hashnode.com/tag/deepcopy)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#deep-copy-vs-shallow-copy](https://hashnode.com/tag/deep-copy-vs-shallow-copy)

## Written by

[Kannan Ravindran](https://hashnode.com/@kannanravi)

@kannanravi

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

Just a Developer

I am a front-end developer, who loves writing and sharing knowledge with others...

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
