---
title: "Discussion on \"Why undefined == null is true but null == 0 is false?\" | Hashnode"
description: "Discussion on \"Why undefined == null is true but null == 0 is false?\". Understand why `undefined == null` is true but `null == 0` is false in JavaScript through step-by-step explanation"
url: "https://hashnode.com/posts/why-undefined-null-is-true-but-null-0-is-false/69944f770fbf0a53750891af"
---

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

Discussion

# [Why undefined == null is true but null == 0 is false?](https://shubhamsinghbundela.hashnode.dev/why-undefined-null-is-true-but-null-0-is-false?utm_source=hashnode&utm_medium=feed)

Understand why \`undefined == null\` is true but \`null == 0\` is false in JavaScript through step-by-step explanation

Feb 17 · 3 min read · shubhamsinghbundela.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#coding](https://hashnode.com/tag/coding)
-   [#undefined](https://hashnode.com/tag/undefined)
-   [#null](https://hashnode.com/tag/null)

## Written by

[Shubham Kumar Singh](https://hashnode.com/@shubhamsinghbundela)

@shubhamsinghbundela · India

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

Problem Solver | Full Stack Developer

I'm Shubham (@shubhamsinghbundela), I'm a Software Engineer, a Full-stack developer, a tech enthusiast, and a technical writer here on @Hashnode. I have a strong zeal to share my acquired knowledge and I am also willing to learn from others.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
