On your JavasScript journey, you’ve come across Primitive Data Types and Reference Data Types. You probably learned that the main difference between the two is “how they are stored in memory” where primitive data types are often assigned a new value while reference data types are given a new reference to that memory.
JS Things - Primitive vs Reference Data…
On your JavasScript journey, you’ve come across Primitive Data Types and Reference Data Types. You probably learned that the main difference between the two is “how they are stored in memory” where primitive data types are often assigned a new value while reference data types are given a new reference to that memory.