---
title: "Discussion on \"Javascript object references & creating a copy\" | Hashnode"
description: "Discussion on \"Javascript object references & creating a copy\". The way that javascript objects store values as variables can cause issues if you are unaware of how it is done. The difference is that values are stored as a reference, in contrast to primitive data types which are stored as the actual value. \nAs a ..."
url: "https://hashnode.com/posts/javascript-object-references-creating-a-copy/62dd3d02b12ca5754f6a6a84"
---

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

Discussion

# [Javascript object references & creating a copy](https://garyditsch.hashnode.dev/javascript-object-references-creating-a-copy?utm_source=hashnode&utm_medium=feed)

The way that javascript objects store values as variables can cause issues if you are unaware of how it is done. The difference is that values are stored as a reference, in contrast to primitive data types which are stored as the actual value. As a ...

Jul 24, 2022 · 5 min read · garyditsch.hashnode.dev  
Updated Jul 25, 2022  
Read the article

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

## Written by

[Gary Ditsch](https://hashnode.com/@garyditsch)

@garyditsch

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

## Responses 1

Markdown supported · ⌘↵ to post

[Roger Mullins](https://hashnode.com/@rdmullins)

[Jul 25, 2022](https://hashnode.com/posts/javascript-object-references-creating-a-copy/62dd3d02b12ca5754f6a6a84/comment/62debf04790e138f3d396c3b)

Excellent overview! I can easily see myself falling into that trap. :-)
