Review: Using JavaScript Objects

Objects are an essential data type of JavaScript, and learning how to use them is necessary to develop applications. We will start with a quick review of objects from the first course. Try the examples in this article to review creating and manipulating objects, accessing objects using dot [.] notation and bracket notation, and setting and getting object members. You can use the JavaScript Console on your browser DevTools to complete the examples.

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.