News for hackers. Stuff that matters.
Re:Deep-copying in JavaScript by BeeOnRope on Thursday January 25, 2018 @08:50PM (#16236444)
It's essentially exactly analogous to pass-by-value in C, where references are replaced by pointers. The primary difference is that JavaScript (and many other langues) use references as the only way to refer to an object, whereas C also has the concept of directly referring to an object by value where assignment or passing as a parameter will make a copy of the object.

There are no comments on this comment yet.