我们的志愿者还没有将这篇文章翻译为 中文 (简体)。加入我们帮助完成翻译!
Mutable is a type of variable that can be changed. In JavaScript, only objects and arrays are mutable, not primitive values.
(You can make a variable name point to a new value, but the previous value is still held in memory. Hence the need for garbage collection.)
Learn more
General knowledge
- Immutable object on Wikipedia