Confusing about passing by refrenece in js object

前端 未结 0 513
名媛妹妹
名媛妹妹 2020-12-23 17:57

So, we know that value of variables that contain objects in javascript are passed by reference. for example:

let a = {name:\'john\'};
let b = a;
a.name = \'do         


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