Does javascript string replace create a new string if no replacement happened?

前端 未结 0 1222
小鲜肉
小鲜肉 2020-12-03 11:23
    let s = \'ABC\';
    s = s.replace(\'D\', \'E\');

Is s the same string (in the memory aspect, not it\'s value) after this?

A

相关标签:
回答
  • 消灭零回复
提交回复
热议问题