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.