Data Structures: Objects

Working with Object Properties and Values

Objects #

A Javascript object is another variable that allows us to store multiple pieces of data.

Like arrays, objects are capable of storing any valid Javascript data type, including arrays and other objects. However, unlike arrays, data in objects are stored in object properties.

Let’s once again take the example of a classroom with students. We will make a single student an object with multiple properties:

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy