Review: Using JavaScript Objects

Summary

Congratulations, you've reached the end of our first JS objects article - you should now have a good idea of how to work with objects in JavaScript - including creating your own simple objects. It would be best if you also appreciated that objects are very useful as structures for storing related data and functionality. It would be inefficient and frustrating if you tried to keep track of all the properties and methods in our object as separate variables and functions. We'd run the risk of clashing with other variables and functions that have the same names. Objects let us keep the information safely locked away in their own package, out of harm's way.