puddlejumper26 / blogs

Personal Tech Blogs
4 stars 1 forks source link

Primitive types - Reference #105

Open puddlejumper26 opened 4 years ago

puddlejumper26 commented 4 years ago

image image 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.

Examples of native JavaScript values that are immutable are numbers and strings.

Reference

[1] https://en.wikipedia.org/wiki/Reference_(computer_science) [2] https://en.wikipedia.org/wiki/Value_type_and_reference_type