Select Page
Objects are used for collections of data and collections of functionality.

Let’s create an object called person. When you create an object you use curly brackets and you then define properties and values.

const person = {
first: ‘Mike’,
last: ‘Coleman’,
age: 100

How do you access properties of an object in Javascript?
person.first / outputs Mike
person.age / outputs 100