---
title: "Discussion on \"The Strangest Equality in JavaScript — Explained with Real Examples\" | Hashnode"
description: "Discussion on \"The Strangest Equality in JavaScript — Explained with Real Examples\". 🧠 Why [] == ![] is true and other JavaScript WTFs 🤯\nIf you've ever stared at a JavaScript comparison and thought,\n\n\"This can't be right...\"You're not alone.\n\nJavaScript’s type coercion is infamous for producing results that seem straight-up wrong —..."
url: "https://hashnode.com/posts/the-strangest-equality-in-javascript-explained-with-real-examples/6863cfb19dbd60baa7b6d8a7"
---

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

Discussion

# [The Strangest Equality in JavaScript — Explained with Real Examples](https://theconsolelogs.hashnode.dev/the-strangest-equality-in-javascript-explained-with-real-examples?utm_source=hashnode&utm_medium=feed)

🧠 Why \[\] == !\[\] is true and other JavaScript WTFs 🤯 If you've ever stared at a JavaScript comparison and thought, "This can't be right..."You're not alone. JavaScript’s type coercion is infamous for producing results that seem straight-up wrong —...

Jun 26, 2025 · 3 min read · theconsolelogs.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#typecoercion](https://hashnode.com/tag/typecoercion)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#dailydev](https://hashnode.com/tag/dailydev)
-   [#codetips](https://hashnode.com/tag/codetips)
-   [#theconsolelogs](https://hashnode.com/tag/theconsolelogs)
-   [#wtfjs](https://hashnode.com/tag/wtfjs)

## Written by

[Aryan Jogi](https://hashnode.com/@aryanjogi)

@aryanjogi

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

Speak to express not to impress!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
