Problem Statement
Which declaration creates an optional object property?
Explanation
A question mark after the property name marks it optional. The property may be omitted. With `exactOptionalPropertyTypes`, TypeScript distinguishes “missing” from “present but undefined,” giving tighter checks.
Code Solution
SolutionRead Only
type Org = { name: string; desc: string; est?: number }
const a: Org = { name: 'GfG', desc: 'CS portal' } // est omitted
const b: Org = { name: 'GfG', desc: 'CS', est: 2008 }