---
title: "Discussion on \"Difference between Shallow Copy and Deep Copy in JavaScript\" | Hashnode"
description: "Discussion on \"Difference between Shallow Copy and Deep Copy in JavaScript\". In this blog, you’ll learn about shallow copy and deep copy in JavaScript with the help of examples.\nIn JavaScript, the object is copied in two ways: the first way is shallow copy, and the second way is deep copy. Before understanding shallow copy an..."
url: "https://hashnode.com/posts/difference-between-shallow-copy-and-deep-copy-in-javascript/646f48971fc3f858d538f9a9"
---

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

Discussion

# [Difference between Shallow Copy and Deep Copy in JavaScript](https://www.sonusahu.com/difference-between-shallow-copy-and-deep-copy-in-javascript?utm_source=hashnode&utm_medium=feed)

In this blog, you’ll learn about shallow copy and deep copy in JavaScript with the help of examples. In JavaScript, the object is copied in two ways: the first way is shallow copy, and the second way is deep copy. Before understanding shallow copy an...

May 25, 2023 · 4 min read · sonusahu.com  
Updated Apr 11, 2024  
Read the article

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

## Written by

[Sonu Sahu](https://hashnode.com/@sonusahudev)

@sonusahudev · India

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

Frontend Developer

I'm Sonu Sahu Web Designer &amp; Front-End Developer Focused On Crafting Clean &amp; User-Friendly Experiences, I Am Passionate About Building Excellent Software That Improves The Lives Of Those Around Me.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
