---
title: "Discussion on \"Shallow copy vs Deep copy\" | Hashnode"
description: "Discussion on \"Shallow copy vs Deep copy\". When dealing with arrays and objects in JavaScript, it is often necessary to create copies of these structures. Since both arrays and objects are mutable, understanding the implications of modifying a copied array or object on the original is crucial..."
url: "https://hashnode.com/posts/shallow-copy-vs-deep-copy/658187c59e2fc879617fb50f"
---

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

Discussion

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

When dealing with arrays and objects in JavaScript, it is often necessary to create copies of these structures. Since both arrays and objects are mutable, understanding the implications of modifying a copied array or object on the original is crucial...

Dec 19, 2023 · 4 min read · vishal21121.hashnode.dev  
Read the article

-   [#shallow-copy-vs-deep-copy](https://hashnode.com/tag/shallow-copy-vs-deep-copy)
-   [#deep-copy-vs-shallow-copy](https://hashnode.com/tag/deep-copy-vs-shallow-copy)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#javascript-series](https://hashnode.com/tag/javascript-series)
-   [#coderscommunity](https://hashnode.com/tag/coderscommunity)
-   [#shallowcopy](https://hashnode.com/tag/shallowcopy)
-   [#deepcopy](https://hashnode.com/tag/deepcopy)

## Written by

[vishal singh](https://hashnode.com/@vishal21121)

@vishal21121 · India

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

My name is Vishal Singh, and I am currently pursuing my B.Tech degree from Future Institute of Engineering and Management. I am also a web developer with experience in HTML, CSS, JS, Node js, Express js MongoDB and others. I am passionate about creating high-quality and user-friendly websites that provide value to their users.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
