Objects are collections of properties and values.
{
name: 'Tommy Boy',
age: 26,
weight: 306,
friends: ['Richard', 'Michelle']
}
var person = {
fullName: 'Tommy Boy',
age: 26,
weight: 306,
friends: ['Richard', 'Michelle']
};
// Two ways to access the data at a object's property:
console.log(person.age);
console.log(person['age']);
Objects vs Arrays