Objects allow the grouping of related information into one unit. An object is created using curly braces.
let animal = {
name: ‘Huey’,
age: 2,
animalType: ‘duck
}
Notice how there is information inside the curly braces. These are in the form of name/value pairs. They are called properties. Properties can hold any type of data.
To access these properties, we can use dot-object notation…
console.log( animal.name ); // Outputs “Huey”
Happy Coding!
Clay Hess