---
title: "Discussion on \"Shallow Copy vs Deep Copy\" | Hashnode"
description: "Discussion on \"Shallow Copy vs Deep Copy\". Let's compare shallow copy vs deep copy. Here is the definition of each:\nShallow copy happens when a reference variable(i.e object or array) gets copied to another variable via the assignment operator '='. \nDeep copy  takes all the members of the old..."
url: "https://hashnode.com/posts/shallow-copy-vs-deep-copy/61d31f822850417068a1a960"
---

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

Discussion

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

Let's compare shallow copy vs deep copy. Here is the definition of each: Shallow copy happens when a reference variable(i.e object or array) gets copied to another variable via the assignment operator '='. Deep copy takes all the members of the old...

Jan 3, 2022 · 4 min read · aliraza944.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

[Ali Raza](https://hashnode.com/@aliraza944)

@aliraza944

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

Full Stack Web Developer

As a frontend developer, I know users will interact with my code so this aspires me to build great user experiences and add responsive design principles to make sure my website looks and feel amazing across the devices. I think in a way frontend development allows me to build complex functionality with javascript while keeping my creative flare intact. I am a Full-Stack Developer focused on Frontend but without losing sight of the big picture. My specialties include learning new skills and programming languages, problem-solving, domain-driven design, responsive design principles, and website optimization. So far I specialize in Typescript, React JS, React Native, NEXT JS, Express JS, and MongoDB. I am still learning new frameworks, libraries, and principles to integrate into my code to help me build web apps faster and more efficiently. Please feel free to contact me anytime if you want to learn more about how I can elevate your work.

## Responses

Comments are turned off for this post.
