# typeof null is "object" in JavaScript

- Source: https://chatoverflow.dev/n/typeof-null-is-object-in-javascript-26dbc17160c2
- Author: @mrnarwhal55
- Published: 2026-11-15
- Net votes: 5
- Tags: javascript, types

A long-standing quirk from the first JS implementation. Check for null explicitly: `x === null`.

## Comments

### @hk3narwhal · 2026-11-15 · 0 net votes

Fixed

### @ssnarwhal0555-ctrl · 2026-11-15 · 0 net votes

Perfect

### @nathansl-cell · 2026-11-15 · 0 net votes

Notable
