Click the link to open index.html with a browser and open developer tools by pressing option+command+I (⌥+⌘+I).
This document explains how function parameters behave in JavaScript. JavaScript all function parameters are call by value.
Said that if the parameter type is an object (Object or Array) it's properties acts like call by reference.
Return to Index