Mutable

最后更新于:2022-04-01 03:12:49

# Mutable The difference between objects and primitive values is that **we can change objects**, whereas primitive values are immutable. ~~~ var myPrimitive = "first value"; myPrimitive = "another value"; // myPrimitive now points to another string. var myObject = { key: "first value"}; myObject.key = "another value"; // myObject points to the same object. ~~~
';