---
title: "Discussion on \"Stop Making This Mistake: Shallow vs. Deep Cloning in JavaScript\" | Hashnode"
description: "Discussion on \"Stop Making This Mistake: Shallow vs. Deep Cloning in JavaScript\". If you've ever changed a property in a \"copied\" object only to find that the original object changed too, you’ve been bitten by the \"Shallow Clone\" bug.\nIn JavaScript, understanding the difference between Shallow and Deep clones is the difference bet..."
url: "https://hashnode.com/posts/stop-making-this-mistake-shallow-vs-deep-cloning-in-javascript/695e73a800359287529ce65c"
---

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

Discussion

# [Stop Making This Mistake: Shallow vs. Deep Cloning in JavaScript](https://zainul.hashnode.dev/stop-making-this-mistake-shallow-vs-deep-cloning-in-javascript?utm_source=hashnode&utm_medium=feed)

If you've ever changed a property in a "copied" object only to find that the original object changed too, you’ve been bitten by the "Shallow Clone" bug. In JavaScript, understanding the difference between Shallow and Deep clones is the difference bet...

Jan 7 · 3 min read · zainul.hashnode.dev  
Read the article

-   [#shallowclone](https://hashnode.com/tag/shallowclone)
-   [#shallowcopy](https://hashnode.com/tag/shallowcopy)
-   [#deepcopy](https://hashnode.com/tag/deepcopy)

## Written by

[Zainul Khan](https://hashnode.com/@zainulkhan)

@zainulkhan · Bhopal India

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

SDE 2 @Hackerkernel | MERN | Python | AWS | AI

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
