Answers for "javascript string is mutable"

0

javascript string is mutable

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.
Posted by: Guest on September-08-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language