Primitive values immutable or not?
And still, the following code works:
I expected to get an error with "myvar="changed!";" but it works. Did I misunderstand what is meant with primitives being immutable?
var myvar = "hello, world!";
myvar = "changed!";
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)