I'm going crazy with the concept of immutability in Javascript. The concept is explained like "after it has been created, it can never change." But what does it exactly mean? I understood the example of the content of a string
var statement = "I am an immutable value";
var otherStr = statement.slice(8, 17);
The second line in no way changes the string in statement. But what about the methods? Can you give an example of immutability in methods? I hope you can help me, thank you.