Introduction
Optional properties let you create objects where some details can be left out. This makes your code flexible and easier to use.
When you want to describe a user profile where some info like phone number might not be given.
When creating settings where some options can be skipped and default values used.
When working with forms where some fields are not required.
When defining data models that can have extra or missing parts depending on the case.