I know in JS the primitive values are immutable values and objects are mutable, but, what does it exactly mean?
For example:
var foo = 1;
then we have
foo = 2;
did foo
mutate?
Is that applicable for every language? or does everyone applies it under its own rules?