JavaScript creates a new value when you modify one. Examples: - String - Number - Boolean - Null - Undefined - Symbol - BigInt Mutable values change. JavaScript updates the original object. Examples: ...
What changes in practice: → You declare the shape once - Success or Failure - and the compiler knows the full set of cases. → Your switch becomes exhaustive. Miss a case, and the compiler tells you, ...