First, let's look at how values are passed, copied, and stored in memory by JavaScript.

In JavaScript, there are two types of Values.

This is the data that has a single value and no additional methods or properties. E.g. String, Number, Boolean, Undefined, and Null. …

Akshay Shegaonkar

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