WHAT'S NEW?

JavaScript :: Pass-by-Value and Pass-by-reference in functions :: Series 5

JS functions are objects that are a created as a block to perform a specific action.

If we pass an object to the JS function and modify the object's property, it is reflected at the global level.
Where as if we try to modify the object itself, it is modified with in the scope of the function and not outside of it (i.e., at the global level)
Here is the example for it.

0 comments:

Post a Comment