Concepts

3 Important Things

  • reference type Objects are called the ‘reference types’ in Javascript.

[] == []; returns false

            `var object1 = { value: 10 };
            var object2 = object1;
            var object3 = { value: 10 };`

When you type object1 == object2; it returns true

Then try: object1 == object3;, that returns false

  • context

  • instantiation