Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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.
Source by www.dofactory.com #
 
PREVIOUS NEXT
Tagged: #pass #object #function #object #javascript
ADD COMMENT
Topic
Name
3+7 =