Skip to content

Glossary: Node.js Basics

instanceof

An operator that checks whether an object was made by a given class. It lets a `catch` tell expected errors like `InventoryError` from bugs.

Where the book teaches it

Related terms

Operational / programmer errorInventoryError / UsageError