We have to declare a question mark ??’ in the code to make a property optional. If a property doesn’t have a value, then the symbol ? helps to avoid the runtime error.
Technical Interview Questions
We have to declare a question mark ??’ in the code to make a property optional. If a property doesn’t have a value, then the symbol ? helps to avoid the runtime error.