× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

Objects are copied always by reference

Cesar Iduarte
Jan 14, 2016
<p>When manipulating objects (literals, function type) it is important to remember that they are all assignned by reference, meaning that a reference to the same variable is stored instead of its value. So changes done inside functions or even in a copy will persist in the original since they all point to the same object.</p>
comments powered by Disqus