Skip to content

Glossary: Software Design Patterns in JavaScript

Object.freeze

Also written: freeze, frozen

Makes an object read-only. Because modules run in strict mode, assigning to a frozen object throws a TypeError.

Where the book teaches it

Related terms

PrototypeStrict mode