JavaScript object
A value that groups named properties, such as { id: 'alpha' }, and is passed around by reference.
In more detail
Objects are what the garbage collector tracks and frees. Two variables can point to the same object, so the object lives as long as any reference to it.
Related terms
- reachability — Whether an object can still be reached by following references from roots such as global variables and the current call stack.
- Map (collection) — A built-in JavaScript collection of key-value pairs where keys can be any value, including objects, kept in insertion order.
Taught in
- Memory Management: Garbage Collection, Memory Leaks And WeakMap — Frontend Architecture & Web Platform
- Web Workers: Off-Thread Computation And Structured Clone — Frontend Architecture & Web Platform