Primitive Values and Reference Values
Term side of the Card
Topic: Basics
Unit title: Primitive Values and Reference Values
Categories: Concept
Explanation side of the Card
Explanation: The primitive values are immutable and include types, such as `number`, `string`, `boolean`, `null`, `undefined`, `symbol` and `bigint`. The reference values, on the other hand, are objects, arrays and functions. Unlike primitives, reference values are mutable and compared by reference, not by value.