See more
Before we move to actually create the React components we need to know exactly how the data is going to look so we can plan out the DOM structure.
Instead “a” holds a pointer(or reference) to the location in the memory where the object exists. This is the primary difference between objects and primitive values, as the primitive is stored dir…
In JavaScript a variable holding a primitive directly contains the primitive value(rather than a pointer to an object). When you assign a primitive value to a variable, the value is copied into that variable.