Fill: Utility Type
Fill in the Blank Medium
Question
Fill in the blank to make all properties of T optional:
Code
type Maybe<T> = ___<T>;
Hint
This utility type adds ? to every property.
Explanation
The utility type is Partial. Partial<T> makes all properties of T optional by adding ? to each. It is useful for patch/update operations where not all fields are provided.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.