---
title: "Discussion on \"How to Actually Copy an Object & Not Only Reference It\" | Hashnode"
description: "Discussion on \"How to Actually Copy an Object & Not Only Reference It\". JAVASCRIPT TIPS & TRICKS"
url: "https://hashnode.com/posts/reference-semantics-and-how-to-solve-it/65510e6613f826b24e01a545"
---

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

Discussion

# [How to Actually Copy an Object & Not Only Reference It](https://mehakbahar.hashnode.dev/reference-semantics-and-how-to-solve-it?utm_source=hashnode&utm_medium=feed)

JAVASCRIPT TIPS & TRICKS

Nov 12, 2023 · 2 min read · mehakbahar.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reference-types](https://hashnode.com/tag/reference-types)
-   [#slice-vs-splice](https://hashnode.com/tag/slice-vs-splice)
-   [#spread-syntax](https://hashnode.com/tag/spread-syntax)
-   [#spread-operator](https://hashnode.com/tag/spread-operator)

## Written by

[Mehak Bahar](https://hashnode.com/@mehakbahar)

@mehakbahar

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

From Novice to Neural Nets: My Tech Odyssey in Web Development, Design, and AI Aspirations

Hey there! I'm Mehak Bahar, navigating the tech world and sharing the real deal over. Think of this space as my tech diary, where I spill the beans on the highs and lows. Currently knee-deep in web development and design, I'm all about sharing the nitty-gritty - from coding mishaps to those 'aha' moments. But it's not just about tech glitches; I've got my eyes set on the AI realm too. This journey is more than just lines of code; it's a ride filled with challenges, victories, and a sprinkle of geeky fun. So, fellow tech enthusiasts, let's dive into this adventure together!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
