Answers for "if i pass an object to a function is it the same object javascript"

0

if i pass an object to a function is it the same object javascript

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.
Posted by: Guest on November-21-2020

Code answers related to "if i pass an object to a function is it the same object javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language