---
title: "Discussion on \"Exploring the Mystery of Inequality: Why Two Empty Arrays or Objects in JavaScript are Not Equal\" | Hashnode"
description: "Discussion on \"Exploring the Mystery of Inequality: Why Two Empty Arrays or Objects in JavaScript are Not Equal\". Learn about the difference between referential and primitive equality in JavaScript and how it affects the comparison of objects."
url: "https://hashnode.com/posts/exploring-the-mystery-of-inequality-why-two-empty-arrays-or-objects-in-javascript-are-not-equal/63c3e417f082b449c1021710"
---

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

Discussion

# [Exploring the Mystery of Inequality: Why Two Empty Arrays or Objects in JavaScript are Not Equal](https://chirag18.hashnode.dev/exploring-the-mystery-of-inequality-why-two-empty-arrays-or-objects-in-javascript-are-not-equal?utm_source=hashnode&utm_medium=feed)

Learn about the difference between referential and primitive equality in JavaScript and how it affects the comparison of objects.

Jan 15, 2023 · 2 min read · chirag18.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#coding](https://hashnode.com/tag/coding)
-   [#referential-equality](https://hashnode.com/tag/referential-equality)
-   [#object-equality](https://hashnode.com/tag/object-equality)

## Written by

[Chirag Chhajed](https://hashnode.com/@chiragchhajed)

@chiragchhajed

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
