Everything about JavaScript objects

Object-  In JavaScript, an object is a standalone entity, with properties and type. Compare it with a Car, for example. A car is an object, with properties. A car has a color, a design, weight, a material it is made of, etc. The same way, JavaScript objects can have properties, which define their characteristics.   In […]

Refrential Equality

Referential Equality: Referential equality of two objects means that they point to the exact same object in memory, i.e. they use the same reference. Structural equality on the other hand means that two objects have the same value. We know that when we create a variable or object or array some memory location will be allocated to it.  Structural equality The structural equality […]