Skip to content

Glossary: JavaScript Basics

undefined / null

Also written: undefined, null

`undefined` means no value has been given yet, and `null` means deliberately empty. Both are falsy and can be replaced with a default using `??`.

Where the book teaches it

Related terms

FalsyNullish coalescing