---
title: "Discussion on \"The Battle of Copying Objects in JavaScript: Shallow Copy vs. Deep Copy\" | Hashnode"
description: "Discussion on \"The Battle of Copying Objects in JavaScript: Shallow Copy vs. Deep Copy\". Learn the differences between shallow copy and deep copy in JavaScript and how they impact your code's performance. Discover methods for copying objects."
url: "https://hashnode.com/posts/the-battle-of-copying-objects-in-javascript-shallow-copy-vs-deep-copy/648d6499cae0716e0007bed7"
---

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

Discussion

# [The Battle of Copying Objects in JavaScript: Shallow Copy vs. Deep Copy](https://pratima-adhikari.hashnode.dev/the-battle-of-copying-objects-in-javascript-shallow-copy-vs-deep-copy?utm_source=hashnode&utm_medium=feed)

Learn the differences between shallow copy and deep copy in JavaScript and how they impact your code's performance. Discover methods for copying objects.

Jun 17, 2023 · 7 min read · pratima-adhikari.hashnode.dev  
Updated Jul 6, 2023  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#hashnode](https://hashnode.com/tag/hashnode)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[Pratima Adhikari](https://hashnode.com/@pratimaAdh)

@pratimaAdh · Gurugram, India

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

I am a software engineer with 3 years of experience in building full stack applications using JavaScript tech stack like MEAN and MERN stack. Alongside my technical skills, I also have experience in the field of digital marketing. With a passion for continuous learning and exploration, I enjoy combining my diverse background to create innovative solutions. I'm thrilled to dive into the world of blogging, where I can both share my knowledge and experiences and learn from the incredible community of writers and readers.

## Responses 1

Markdown supported · ⌘↵ to post

[Om Dhanwant](https://hashnode.com/@omdhanwant)

[Jun 30, 2023](https://hashnode.com/posts/the-battle-of-copying-objects-in-javascript-shallow-copy-vs-deep-copy/648d6499cae0716e0007bed7/comment/649edc3c2a0936ab01ee2c3f)

Great article! One point I want to add here is, the deep copy omits the functions and Symbols! Do follow me on Instagram - codecraftjs  
Dev community - dev.to/codecraftjs

[Pratima Adhikari](https://hashnode.com/@pratimaAdh)

[Jun 30, 2023](https://hashnode.com/posts/the-battle-of-copying-objects-in-javascript-shallow-copy-vs-deep-copy/648d6499cae0716e0007bed7/comment/649edc3c2a0936ab01ee2c3f#reply-649f01132a0936ab01ee30e9)

Glad you liked the article and thanks for pointing out.
