---
title: "Discussion on \"Shallow vs Deep Copy in JavaScript\" | Hashnode"
description: "Discussion on \"Shallow vs Deep Copy in JavaScript\". Before diving into the topic, let's explore how Javascript handles assignments on primitive and reference variables.\nExamples of Primitive data types are:\n\nNumbers\n\nString\n\nBoolean\n\nNull\n\nUndefined\n\nSymbols\n\n\nPrimitive data types do not have methods...."
url: "https://hashnode.com/posts/shallow-vs-deep-copy-in-javascript/64e70080adbbe79571d5f231"
---

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

Discussion

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

Before diving into the topic, let's explore how Javascript handles assignments on primitive and reference variables. Examples of Primitive data types are: Numbers String Boolean Null Undefined Symbols Primitive data types do not have methods....

Aug 24, 2023 · 4 min read · gaire.hashnode.dev  
Read the article

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

## Written by

[Suraj Gaire](https://hashnode.com/@SurajGaire)

@SurajGaire · Kathmandu

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
