Lesson 10 of 24 · +90 xp
Optional Property
?: makes it optional.
Explained simply
Your task
Define interface User { name: string; email?: string; }
Lesson 10 of 24 · +90 xp
?: makes it optional.
Define interface User { name: string; email?: string; }