---
title: "Discussion on \"What is copy by value and copy by reference?\" | Hashnode"
description: "Discussion on \"What is copy by value and copy by reference?\". Before going to details about copy by value and copy by reference first, we need to know about Primitive datatype and  non-primitive data type\nWhat is a Primitive data type?\nPrimitive data types are :\n-Number\n-Boolean\n-Undefined\n-String\n-Null\nThe non..."
url: "https://hashnode.com/posts/what-is-copy-by-value-and-copy-by-reference/62a59dd2165482d2b3eed672"
---

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

Discussion

# [What is copy by value and copy by reference?](https://akr7205.hashnode.dev/what-is-copy-by-value-and-copy-by-reference?utm_source=hashnode&utm_medium=feed)

Before going to details about copy by value and copy by reference first, we need to know about Primitive datatype and non-primitive data type What is a Primitive data type? Primitive data types are : -Number -Boolean -Undefined -String -Null The non...

Jun 12, 2022 · 1 min read · akr7205.hashnode.dev  
Read the article

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

## Written by

[ARUN ROUT](https://hashnode.com/@akr7205)

@akr7205

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

## Responses 2

Markdown supported · ⌘↵ to post

[Diseyi Philomena](https://hashnode.com/@Diseyi)

[Jun 13, 2022](https://hashnode.com/posts/what-is-copy-by-value-and-copy-by-reference/62a59dd2165482d2b3eed672/comment/62a7ad4e4754a2eb1e0a9b44)

Really easy to understand. Thanks for sharing

[Shubham Kumar Singh](https://hashnode.com/@shubhamsinghbundela)

[Jun 12, 2022](https://hashnode.com/posts/what-is-copy-by-value-and-copy-by-reference/62a59dd2165482d2b3eed672/comment/62a5a89d165482d2b3eed7cc)

Keep it up [ARUN ROUT](https://hashnode.com/@akr7205)
