---
title: "Discussion on \"Deep cloning in JavaScript and Python\" | Hashnode"
description: "Discussion on \"Deep cloning in JavaScript and Python\". Why can't we just use  \"=\" to copy objects? 😲\n\nIn JavaScript and Python, a reference to the original data is generated when they copy an object to a new variable rather than making a new copy of the object in memory. \n\nTherefore, any changes made to..."
url: "https://hashnode.com/posts/deep-cloning-in-javascript-and-python/6305cf3a47cfea48d095b736"
---

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

Discussion

# [Deep cloning in JavaScript and Python](https://akshayrr.hashnode.dev/deep-cloning-in-javascript-and-python?utm_source=hashnode&utm_medium=feed)

Why can't we just use "=" to copy objects? 😲 In JavaScript and Python, a reference to the original data is generated when they copy an object to a new variable rather than making a new copy of the object in memory. Therefore, any changes made to...

Aug 24, 2022 · 2 min read · akshayrr.hashnode.dev  
Read the article

-   [#deepcopy](https://hashnode.com/tag/deepcopy)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#python](https://hashnode.com/tag/python)
-   [#software-engineering](https://hashnode.com/tag/software-engineering)

## Written by

[Akshay R R](https://hashnode.com/@akshayrr27)

@akshayrr27 · Puducherry, India

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

☁️🚀⚽| Python, Elixir, JavaScript, Go | Full Stack Engineer

Software Engineer

## Responses 1

Markdown supported · ⌘↵ to post

[Mitch Harisson](https://hashnode.com/@MitchHarisson)

[Aug 24, 2022](https://hashnode.com/posts/deep-cloning-in-javascript-and-python/6305cf3a47cfea48d095b736/comment/63066da879f56556d0cb83c7)

Thanks for info!

[Akshay R R](https://hashnode.com/@akshayrr27)

[Aug 24, 2022](https://hashnode.com/posts/deep-cloning-in-javascript-and-python/6305cf3a47cfea48d095b736/comment/63066da879f56556d0cb83c7#reply-6306728b0e45d758b7f80bae)

Happy you found it helpful! 🚀
