669 shaares
What are the benefits of using Object literal over the Object constructor notation? Here are they: 1. literal notation is shorter 2. literal notation emphasizes that objects are mutable hashes 3. literal notation does not trigger identifier resolution process -> when using Object constructor JS checks the scope chain if original constructor function is not…