📌  相关文章
📜  如果我将一个对象传递给一个函数,它是否是同一个对象 javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:35.302000             🧑  作者: Mango

代码示例1
When you assign an object to another variable,
JavaScript does not create a new copy of the object.

Instead it makes the new variable reference the 
same object as the original. 

It is just that two variables having different names are accessing 
the same underlying object.