Skip to content

Glossary: Software Design Patterns in JavaScript

Global mutable state

Also written: global state

Data at module level that any code can change, like the old orders array or a shared settings object. Tests then affect each other and depend on run order.

Where the book teaches it

Related terms

SingletonAnti-pattern