Nothing is passed by reference in JavaScript

If you read JavaScript tutorials, you inevitably come across some unofficial terminology and interpretations that are missing from the ECMAScript specification. Let’s consider the meanings of two expressions — passed by reference or passed by value.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store