Why Primitive and Non-primitive datatypes in JavaScript works differently when we try to copy data from one variable to another?
In JavaScript, Primitive data types are - string, number, boolean, undefined, null, symbol and non-primitive data types are - arrays and objects which are also known as Reference data types.
Let's see how it gets stored -
There are basically two typ...
pranitapatil.hashnode.dev3 min read