📜  javascript 字符串是可变的 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:30.392000             🧑  作者: Mango

代码示例1
var immutableString = "Hello";

// In the above code, a new object with string value is created.

immutableString = immutableString + "World";

// We are now appending "World" to the existing value.