---
title: "Discussion on \"Reference equality in JavaScript\" | Hashnode"
description: "Discussion on \"Reference equality in JavaScript\". Introduction: JavaScript, being a versatile and dynamic language, offers various ways to compare values. While primitive types like numbers and strings are compared based on their content, objects and arrays are compared based on their reference in m..."
url: "https://hashnode.com/posts/reference-equality-in-javascript/65f01af423defc8ec7359ffb"
---

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

Discussion

# [Reference equality in JavaScript](https://dawidpaszek.hashnode.dev/reference-equality-in-javascript?utm_source=hashnode&utm_medium=feed)

Introduction: JavaScript, being a versatile and dynamic language, offers various ways to compare values. While primitive types like numbers and strings are compared based on their content, objects and arrays are compared based on their reference in m...

Mar 12, 2024 · 3 min read · dawidpaszek.hashnode.dev  
Read the article

-   [#reference-equality](https://hashnode.com/tag/reference-equality)
-   [#comparing-types](https://hashnode.com/tag/comparing-types)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Dawid Paszek](https://hashnode.com/@deejff)

@deejff · Bielsko-Biała

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

Senior Full Stack Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
