Skip to content
engineering workbench.by StudyPort Academy
All glossary terms

GLOSSARY · A WORD, UNPACKED

null

a value that deliberately represents "nothing" or "empty," set on purpose by the programmer.

A little more detail

APIs also use null to represent absence: document.querySelector returns null when no element matches. null is a primitive value, despite typeof null returning "object" for historical reasons. It has no properties to read. Decide whether absence is expected and use a guard or optional chaining when it is.

See it in practice

These lessons pair the idea with examples you can change and run.