---
title: "Discussion on \"Primitive vs Reference\" | Hashnode"
description: "Discussion on \"Primitive vs Reference\". In javascript there are two types of data types reference and primitive types.\nPrimitive\nAs the name suggests these types are of a very basic kind. It includes the following types \n\nString\nNumber\nBoolean\nUndefined\nNull\n\nlet name = 'Amar'\nlet age = 22..."
url: "https://hashnode.com/posts/primitive-vs-reference/61201d33e404793819ca840a"
---

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

Discussion

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

In javascript there are two types of data types reference and primitive types. Primitive As the name suggests these types are of a very basic kind. It includes the following types String Number Boolean Undefined Null let name = 'Amar' let age = 22...

Aug 20, 2021 · 3 min read · starver.hashnode.dev  
Read the article

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

## Written by

[Amar Narute](https://hashnode.com/@starver)

@starver

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

Web Dev

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
