---
title: "Discussion on \"Why typeof null === 'object' — And Why JavaScript Still Hasn’t Fixed It\" | Hashnode"
description: "Discussion on \"Why typeof null === 'object' — And Why JavaScript Still Hasn’t Fixed It\". typeof null === \"object\" isn’t just a weird JavaScript quirk — it’s a 25-year-old bug baked into the language for backward compatibility."
url: "https://hashnode.com/posts/javascript-null-bug/6885ab6f9bda81d260ad3986"
---

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

Discussion

# [Why typeof null === 'object' — And Why JavaScript Still Hasn’t Fixed It](https://dhruvburada.hashnode.dev/javascript-null-bug?utm_source=hashnode&utm_medium=feed)

typeof null === "object" isn’t just a weird JavaScript quirk — it’s a 25-year-old bug baked into the language for backward compatibility.

Jul 27, 2025 · 3 min read · dhruvburada.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#bugs-and-errors](https://hashnode.com/tag/bugs-and-errors)
-   [#js](https://hashnode.com/tag/js)
-   [#mern](https://hashnode.com/tag/mern)
-   [#mern-stack-development](https://hashnode.com/tag/mern-stack-development)
-   [#development](https://hashnode.com/tag/development)
-   [#devops-articles](https://hashnode.com/tag/devops-articles)
-   [#developer-journey](https://hashnode.com/tag/developer-journey)
-   [#learninpublic](https://hashnode.com/tag/learninpublic)
-   [#typeof](https://hashnode.com/tag/typeof)
-   [#learning-journey](https://hashnode.com/tag/learning-journey)
-   [#learn-coding](https://hashnode.com/tag/learn-coding)

## Written by

[Dhruv Burada](https://hashnode.com/@dhruvburada)

@dhruvburada

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

Code. Learn. Share. Repeat.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
