---
title: "#javascript-typeof articles | Hashnode"
description: "Explore 1 articles tagged #javascript-typeof on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/javascript-typeof"
---

Tag

# #javascript-typeof

1 posts · 0 followers

[Rohan Dhara](https://hashnode.com/@Rohan30z) · [Aug 4, 2025](https://hashnode.com/posts/why-typeof-null-returns-an-object-in-javascript/68910115e147edf32ce45422)

### [Why (typeof null) returns an object in JavaScript?](https://bitzloop.hashnode.dev/why-typeof-null-returns-an-object-in-javascript?utm_source=hashnode&utm_medium=feed)

Lets discuss and understand this well known bug in JavaScript that was kept intentionally due to compatibility and existing flow of the code.null is a primitive value in JavaScript. console.log(typeof "MyName"); // string console.log(typeof true); ...

2 min read · [bitzloop.hashnode.dev](https://bitzloop.hashnode.dev/why-typeof-null-returns-an-object-in-javascript?utm_source=hashnode&utm_medium=feed)

[2](https://hashnode.com/posts/why-typeof-null-returns-an-object-in-javascript/68910115e147edf32ce45422)
