EME 6930 Web Programming 1 - Assignment V Demo 9

Passing Data By Value & By Reference


Moral: Some languages allow control over whether an argument is passed by reference or by value.
JavaScript SCALARS are always passed BY VALUE.
JavaScript ARRAYS(a kind of object) & OBJECTS(a kind of array) are always passed BY REFERENCE

Return to index page