👩💻 Join our community of thousands of amazing developers!
Mutability Mutability refers to the ability of a value or data structure to be changed after it has been created. Primitive values are immutable Primitive values (string, number, bigint, boolean, undefined, symbol and null) are immutable, which means that they cannot be changed once created. let myString = "Hello, world!" // Attempting to mutate (change) the string: myString[0] = "J" // -> 'J' // Proof that strings are immutable, because it didn't change: myString // -> 'Hello, world!' The st...