let s = \'ABC\'; s = s.replace(\'D\', \'E\');
Is s the same string (in the memory aspect, not it\'s value) after this?
s
A