Introduction
Object types help us describe the shape of data clearly. They make sure we use the right properties and values in our programs.
When you want to group related information like a person's name and age together.
When you want to check that a function gets an object with the correct properties.
When you want to avoid mistakes by making sure objects have all needed parts.
When you want to understand what kind of data your program expects or returns.