---
title: "Discussion on \"Primitive vs Reference values in javascript\" | Hashnode"
description: "Discussion on \"Primitive vs Reference values in javascript\". In javascript, a variable can hold one of two value types; either primitive values or reference values. This blogpost highlights the differences between the two types using elaborate examples to make it more understandable.\n\n\nPrimitive Values\n\n\nData ..."
url: "https://hashnode.com/posts/primitive-vs-reference-values-in-javascript/6007d3f0094f2b30301de71c"
---

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

Discussion

# [Primitive vs Reference values in javascript](https://cyruscodes.hashnode.dev/primitive-vs-reference-values-in-javascript?utm_source=hashnode&utm_medium=feed)

In javascript, a variable can hold one of two value types; either primitive values or reference values. This blogpost highlights the differences between the two types using elaborate examples to make it more understandable. Primitive Values Data ...

Jan 20, 2021 · 5 min read · cyruscodes.hashnode.dev  
Updated Feb 2, 2021  
Read the article

-   [#variables](https://hashnode.com/tag/variables)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#100daysofcode](https://hashnode.com/tag/100daysofcode)
-   [#beginners-learningtocode-100daysofcode](https://hashnode.com/tag/beginners-learningtocode-100daysofcode)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)

## Written by

[cyrusCodes](https://hashnode.com/@cyrusCodes)

@cyrusCodes

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

👋 Hello, I'm Cyrus! 🖥️ Web developer ✍️ Tech Blogger 🖱️ UI / UX Designer.

👋 Hello, I'm Cyrus! 🖥️ A web developer, ✍️ Tech Blogger, and 🖱️ UI / UX designer. I have a great passion for good designs, art, and insightful learning materials ranging from books, videos, and blog articles. When not reading I’m developing beautiful, and responsive websites and web apps using javascript and related technologies.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
