I have a variable foo
which has the value of string foo
let foo = 'foo'
let’s say the variable foo
is loaded at the memory address 100000f91
. Does this re-assignment
- change its memory address, let’s say from
100000f91
to100000f92
? - only rewrite the content/data at the address
100000f91
?
foo = bar
What about changing it to a different type? does this change the answer?
foo = 123