---
title: "Discussion on \"Shallow Vs Deep Copy In Javascript\" | Hashnode"
description: "Discussion on \"Shallow Vs Deep Copy In Javascript\". Hey, JS Developers!! While coding at least once you encounter a scenario where you need to copy an object or an array in Javascript. But sometimes it doesn't work as you expected.\nIn this article we'll cover the following concepts in detail:\n\nCreate ..."
url: "https://hashnode.com/posts/shallow-vs-deep-copy-in-javascript/603bd5c70dad7e6b99e21517"
---

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

Discussion

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

Hey, JS Developers!! While coding at least once you encounter a scenario where you need to copy an object or an array in Javascript. But sometimes it doesn't work as you expected. In this article we'll cover the following concepts in detail: Create ...

Feb 28, 2021 · 6 min read · anuradha.hashnode.dev  
Updated Feb 26, 2022  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#beginners-learningtocode-100daysofcode](https://hashnode.com/tag/beginners-learningtocode-100daysofcode)
-   [#codenewbies](https://hashnode.com/tag/codenewbies)
-   [#100daysofcode](https://hashnode.com/tag/100daysofcode)

## Written by

[Anuradha Aggarwal](https://hashnode.com/@anuradha)

@anuradha · New Delhi, India

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

Software Developer Engineer II

A software engineer who likes to explore new technologies, problem-solving, build projects, and have a keen interest in Web development.

## Responses 3

Markdown supported · ⌘↵ to post

[Animesh Pandey](https://hashnode.com/@anmshpndy)

[Mar 1, 2021](https://hashnode.com/posts/shallow-vs-deep-copy-in-javascript/603bd5c70dad7e6b99e21517/comment/603cb9ea1f91337d465beced)

Very neat and apt! Keep it up.

[Anuradha Aggarwal](https://hashnode.com/@anuradha)

[Mar 2, 2021](https://hashnode.com/posts/shallow-vs-deep-copy-in-javascript/603bd5c70dad7e6b99e21517/comment/603cb9ea1f91337d465beced#reply-603dae8f34789003235012a6)

Thank you😀

[Catalin Pit](https://hashnode.com/@Catalinpit)

[Mar 1, 2021](https://hashnode.com/posts/shallow-vs-deep-copy-in-javascript/603bd5c70dad7e6b99e21517/comment/603c8a989aeaec6b8ed55a32)

A good refresher for me! Thank you, [Anuradha Aggarwal](https://hashnode.com/@anuradha)! 😊

[Anuradha Aggarwal](https://hashnode.com/@anuradha)

[Mar 2, 2021](https://hashnode.com/posts/shallow-vs-deep-copy-in-javascript/603bd5c70dad7e6b99e21517/comment/603c8a989aeaec6b8ed55a32#reply-603daec634789003235012ab)

I'm glad you find it useful😊

[casiimir](https://hashnode.com/@casiimir)

[Feb 28, 2021](https://hashnode.com/posts/shallow-vs-deep-copy-in-javascript/603bd5c70dad7e6b99e21517/comment/603be57a9aeaec6b8ed54e2c)

Shallow and Deep copy, the first debugging friend of every JS developer, nice article! Written very nice!

[Anuradha Aggarwal](https://hashnode.com/@anuradha)

[Mar 2, 2021](https://hashnode.com/posts/shallow-vs-deep-copy-in-javascript/603bd5c70dad7e6b99e21517/comment/603be57a9aeaec6b8ed54e2c#reply-603daf42c3970d02fe0fe52a)

Thank you 😃 I'm glad you like it.
