Lesson 10 of 24 · +90 xp

Optional Property

?: makes it optional.

Explained simply

Your task

Define interface User { name: string; email?: string; }

optional.ts
← Back