How Javascript object literal assignment and reference works?

前端 未结 0 728
情话喂你
情话喂你 2020-12-22 09:07

I have a simple question

let obj1 = {}; obj2= obj1;

Here obj1 and obj2 are referencing the same object in the memory i.e. obj1===obj2 -->

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