---
title: "Discussion on \"Understanding Null in JavaScript: A Primitive or an Object?\" | Hashnode"
description: "Discussion on \"Understanding Null in JavaScript: A Primitive or an Object?\". JavaScript is full of quirks, and one of the most puzzling is the treatment of null. While the official ECMAScript specification defines null as a primitive value, using the typeof operator reveals a surprising result: it returns \"object\". This appar..."
url: "https://hashnode.com/posts/understanding-null-in-javascript-a-primitive-or-an-object/66b1d74f98966ccde43c3be8"
---

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

Discussion

# [Understanding Null in JavaScript: A Primitive or an Object?](https://princewrite.hashnode.dev/understanding-null-in-javascript-a-primitive-or-an-object?utm_source=hashnode&utm_medium=feed)

JavaScript is full of quirks, and one of the most puzzling is the treatment of null. While the official ECMAScript specification defines null as a primitive value, using the typeof operator reveals a surprising result: it returns "object". This appar...

Aug 6, 2024 · 2 min read · princewrite.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#null](https://hashnode.com/tag/null)
-   [#typeof](https://hashnode.com/tag/typeof)
-   [#instanceof](https://hashnode.com/tag/instanceof)
-   [#javascriptdevelopment](https://hashnode.com/tag/javascriptdevelopment)

## Written by

[Prince Patel](https://hashnode.com/@princewritecode)

@princewritecode · Indore,Madhya Pradesh

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

Full stack web developer | Visual app developer(bubble.io) | Coding instructor |

A passionate and enthusiastic programmer, having an appetite to learn and explore new things.I have experience working as a Developer in a Startup environment. Also, I am well versed in javascript and have hands-on experience working on full-stack projects using (RESTful API).

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
