Open puddlejumper26 opened 4 years ago
A mutable object is an object whose state can be modified after it is created. An immutable object is an object whose state cannot be modified after it is created.
mutable object
can be modified
immutable
cannot
Examples of native JavaScript values that are immutable are numbers and strings.
[1] https://en.wikipedia.org/wiki/Reference_(computer_science) [2] https://en.wikipedia.org/wiki/Value_type_and_reference_type
A
mutable object
is an object whose statecan be modified
after it is created. Animmutable
object is an object whose statecannot
be modified after it is created.Reference
[1] https://en.wikipedia.org/wiki/Reference_(computer_science) [2] https://en.wikipedia.org/wiki/Value_type_and_reference_type