---
title: "Discussion on \"typeof null\" | Hashnode"
description: "Discussion on \"typeof null\". In JavaScript, typeof is a useful operator for parsing data. typeof returns a string that describes the data type of the value passed in.\nExample:\ntypeof 1234 // \"number\"\ntypeof \"abcd\" // \"string\"\ntypeof false // \"boolean\"\ntypeof { foo: \"bar\" } // \"o..."
url: "https://hashnode.com/posts/typeof-null/611545511f1bd93c4f35b389"
---

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

Discussion

# [typeof null](https://blog.kellenbaker.com/typeof-null?utm_source=hashnode&utm_medium=feed)

In JavaScript, typeof is a useful operator for parsing data. typeof returns a string that describes the data type of the value passed in. Example: typeof 1234 // "number" typeof "abcd" // "string" typeof false // "boolean" typeof { foo: "bar" } // "o...

Aug 12, 2021 · 2 min read · blog.kellenbaker.com  
Updated Mar 13, 2025  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Kellen](https://hashnode.com/@mkb)

@mkb

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

Fullstack developer, musician, CI/CD enthusiast

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
