---
title: "Discussion on \"Shallow Copy  Vs Deep Copy\" | Hashnode"
description: "Discussion on \"Shallow Copy  Vs Deep Copy\". 1. Shallow Copy\n\nCopies the top-level properties of an object/array.\n\nIf the object has nested objects or arrays, the inner objects are shared between the original and the copy.\n\nChanges to nested objects in the copy also affect the original.\n\n\nExamp..."
url: "https://hashnode.com/posts/shallow-copy-vs-deep-copy/68e7f0b4161e1996b33e02a6"
---

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

Discussion

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

1\. Shallow Copy Copies the top-level properties of an object/array. If the object has nested objects or arrays, the inner objects are shared between the original and the copy. Changes to nested objects in the copy also affect the original. Examp...

Oct 9, 2025 · 1 min read · neeltyper001.hashnode.dev  
Read the article

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

## Written by

[Neelesh Joshi](https://hashnode.com/@Neeltyper001)

@Neeltyper001 · Uttarakhand, India

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

Fresher

Hi, am a passionate programmer and front-end web developer I am interested in problem solving

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
