You can make a property optional by declaring a question mark “?” in the code. If a property does not hold any value, then this symbol “?” can help in avoiding runtime errors.

BY Best Interview Question ON 13 Jan 2019